build/pymake/tests/vpath.mk

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 VPATH = foo bar
     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 )
    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
    14 tfile3: test.objtest
    16 %.objtest: %.source
    17 	test "$<" = bar/test.source
    18 	test "$@" = test.objtest

mercurial