michael@0: # On Windows, MSYS make takes Unix paths but Pymake takes Windows paths michael@0: VPSEP := $(if $(and $(__WIN32__),$(.PYMAKE)),;,:) michael@0: michael@0: $(shell \ michael@0: mkdir subd1 subd2 subd3; \ michael@0: printf "reallybaddata" >subd1/foo.in; \ michael@0: printf "gooddata" >subd2/foo.in; \ michael@0: printf "baddata" >subd3/foo.in; \ michael@0: touch subd1/foo.in2 subd2/foo.in2 subd3/foo.in2; \ michael@0: ) michael@0: michael@0: vpath %.in subd michael@0: michael@0: vpath michael@0: vpath %.in subd2$(VPSEP)subd3 michael@0: michael@0: vpath %.in2 subd0 michael@0: vpath f%.in2 subd1 michael@0: vpath %.in2 $(VPSEP)subd2 michael@0: michael@0: %.out: %.in michael@0: test "$<" = "subd2/foo.in" michael@0: cp $< $@ michael@0: michael@0: %.out2: %.in2 michael@0: test "$<" = "subd1/foo.in2" michael@0: cp $< $@ michael@0: michael@0: all: foo.out foo.out2 michael@0: test "$$(cat foo.out)" = "gooddata" michael@0: @echo TEST-PASS