#----------------------------------------------------------------------------- # 7th makefile example -- # This example shows the most common most confusing aspect -- new shells # are created for each command line. Operations that work on the environment # don't work as you might expect. #----------------------------------------------------------------------------- bug0: @export MYVAR="Setting MYVAR" echo MYVAR is \'$$MYVAR\' bug1: @pwd @cd subdir @pwd unbug0: export MYVAR="Setting MYVAR"; echo $$MYVAR unbug1: pwd; cd subdir; pwd clean: rm -f *~ *.o