build/pymake/tests/vpath-directive.mk

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 # On Windows, MSYS make takes Unix paths but Pymake takes Windows paths
     2 VPSEP := $(if $(and $(__WIN32__),$(.PYMAKE)),;,:)
     4 $(shell \
     5 mkdir subd1 subd2 subd3; \
     6 printf "reallybaddata" >subd1/foo.in; \
     7 printf "gooddata" >subd2/foo.in; \
     8 printf "baddata" >subd3/foo.in; \
     9 touch subd1/foo.in2 subd2/foo.in2 subd3/foo.in2; \
    10 )
    12 vpath %.in subd
    14 vpath
    15 vpath %.in subd2$(VPSEP)subd3
    17 vpath %.in2 subd0
    18 vpath f%.in2 subd1
    19 vpath %.in2 $(VPSEP)subd2
    21 %.out: %.in
    22 	test "$<" = "subd2/foo.in"
    23 	cp $< $@
    25 %.out2: %.in2
    26 	test "$<" = "subd1/foo.in2"
    27 	cp $< $@
    29 all: foo.out foo.out2
    30 	test "$$(cat foo.out)" = "gooddata"
    31 	@echo TEST-PASS

mercurial