Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # On Windows, MSYS make takes Unix paths but Pymake takes Windows paths |
michael@0 | 2 | VPSEP := $(if $(and $(__WIN32__),$(.PYMAKE)),;,:) |
michael@0 | 3 | |
michael@0 | 4 | $(shell \ |
michael@0 | 5 | mkdir subd1 subd2 subd3; \ |
michael@0 | 6 | printf "reallybaddata" >subd1/foo.in; \ |
michael@0 | 7 | printf "gooddata" >subd2/foo.in; \ |
michael@0 | 8 | printf "baddata" >subd3/foo.in; \ |
michael@0 | 9 | touch subd1/foo.in2 subd2/foo.in2 subd3/foo.in2; \ |
michael@0 | 10 | ) |
michael@0 | 11 | |
michael@0 | 12 | vpath %.in subd |
michael@0 | 13 | |
michael@0 | 14 | vpath |
michael@0 | 15 | vpath %.in subd2$(VPSEP)subd3 |
michael@0 | 16 | |
michael@0 | 17 | vpath %.in2 subd0 |
michael@0 | 18 | vpath f%.in2 subd1 |
michael@0 | 19 | vpath %.in2 $(VPSEP)subd2 |
michael@0 | 20 | |
michael@0 | 21 | %.out: %.in |
michael@0 | 22 | test "$<" = "subd2/foo.in" |
michael@0 | 23 | cp $< $@ |
michael@0 | 24 | |
michael@0 | 25 | %.out2: %.in2 |
michael@0 | 26 | test "$<" = "subd1/foo.in2" |
michael@0 | 27 | cp $< $@ |
michael@0 | 28 | |
michael@0 | 29 | all: foo.out foo.out2 |
michael@0 | 30 | test "$$(cat foo.out)" = "gooddata" |
michael@0 | 31 | @echo TEST-PASS |