michael@0: $(shell \ michael@0: mkdir -p src/subd; \ michael@0: mkdir subd; \ michael@0: touch dummy; \ michael@0: sleep 2; \ michael@0: touch subd/test.out src/subd/test.in2; \ michael@0: sleep 2; \ michael@0: touch subd/test.out2 src/subd/test.in; \ michael@0: sleep 2; \ michael@0: touch subd/host_test.out subd/host_test.out2; \ michael@0: sleep 2; \ michael@0: touch host_prog; \ michael@0: ) michael@0: michael@0: VPATH = src michael@0: michael@0: all: prog host_prog prog dir/ michael@0: test "$@" = "all" michael@0: test "$<" = "prog" michael@0: test "$^" = "prog host_prog dir" michael@0: test "$?" = "prog host_prog dir" michael@0: test "$+" = "prog host_prog prog dir" michael@0: test "$(@D)" = "." michael@0: test "$(@F)" = "all" michael@0: test "$($@ michael@0: michael@0: %.out2: %.in2 dummy michael@0: @echo TEST_FAIL No need to remake michael@0: michael@0: .PHONY: all