1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/pymake/tests/vpath2.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +VPATH = foo bar 1.5 + 1.6 +$(shell \ 1.7 +mkdir bar; touch bar/test.source; \ 1.8 +sleep 2; \ 1.9 +mkdir foo; touch foo/tfile1; \ 1.10 +touch bar/tfile2 bar/tfile3 bar/test.objtest; \ 1.11 +) 1.12 + 1.13 +all: tfile1 tfile2 tfile3 test.objtest test.source 1.14 + test "$^" = "foo/tfile1 bar/tfile2 bar/tfile3 bar/test.objtest bar/test.source" 1.15 + @echo TEST-PASS 1.16 + 1.17 +tfile3: test.objtest 1.18 + 1.19 +%.objtest: %.source 1.20 + test "$<" = bar/test.source 1.21 + test "$@" = test.objtest