build/pymake/tests/vpath.mk

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:f0bce8731c8d
1 VPATH = foo bar
2
3 $(shell \
4 mkdir foo; touch foo/tfile1; \
5 mkdir bar; touch bar/tfile2 bar/tfile3 bar/test.objtest; \
6 sleep 2; \
7 touch bar/test.source; \
8 )
9
10 all: tfile1 tfile2 tfile3 test.objtest test.source
11 test "$^" = "foo/tfile1 bar/tfile2 tfile3 test.objtest bar/test.source"
12 @echo TEST-PASS
13
14 tfile3: test.objtest
15
16 %.objtest: %.source
17 test "$<" = bar/test.source
18 test "$@" = test.objtest

mercurial