build/pymake/tests/vpath.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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