PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/build/pymake/tests/vpath-directive.mk

http://github.com/zpao/v8monkey
Makefile | 34 lines | 27 code | 7 blank | 0 comment | 0 complexity | 8992d7c54c96e447df76514d14b64a3d MD5 | raw file
 1ifdef __WIN32__
 2VPSEP = ;
 3else
 4VPSEP = :
 5endif
 6
 7$(shell \
 8mkdir subd1 subd2 subd3; \
 9printf "reallybaddata" >subd1/foo.in; \
10printf "gooddata" >subd2/foo.in; \
11printf "baddata" >subd3/foo.in; \
12touch subd1/foo.in2 subd2/foo.in2 subd3/foo.in2; \
13)
14
15vpath %.in subd
16
17vpath
18vpath %.in subd2$(VPSEP)subd3
19
20vpath %.in2 subd0
21vpath f%.in2 subd1
22vpath %.in2 $(VPSEP)subd2
23
24%.out: %.in
25	test "$<" = "subd2/foo.in"
26	cp $< $@
27
28%.out2: %.in2
29	test "$<" = "subd1/foo.in2"
30	cp $< $@
31
32all: foo.out foo.out2
33	test "$$(cat foo.out)" = "gooddata"
34	@echo TEST-PASS