michael@0: VPATH = foo bar michael@0: michael@0: $(shell \ michael@0: mkdir bar; touch bar/test.source; \ michael@0: sleep 2; \ michael@0: mkdir foo; touch foo/tfile1; \ michael@0: touch bar/tfile2 bar/tfile3 bar/test.objtest; \ michael@0: ) michael@0: michael@0: all: tfile1 tfile2 tfile3 test.objtest test.source michael@0: test "$^" = "foo/tfile1 bar/tfile2 bar/tfile3 bar/test.objtest bar/test.source" michael@0: @echo TEST-PASS michael@0: michael@0: tfile3: test.objtest michael@0: michael@0: %.objtest: %.source michael@0: test "$<" = bar/test.source michael@0: test "$@" = test.objtest