1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/pymake/tests/multiple-rules-prerequisite-merge.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +# When a target is defined multiple times, the prerequisites should get 1.5 +# merged. 1.6 + 1.7 +default: foo bar baz 1.8 + 1.9 +foo: 1.10 + test "$<" = "foo.in1" 1.11 + @echo TEST-PASS 1.12 + 1.13 +foo: foo.in1 1.14 + 1.15 +bar: bar.in1 1.16 + test "$<" = "bar.in1" 1.17 + test "$^" = "bar.in1 bar.in2" 1.18 + @echo TEST-PASS 1.19 + 1.20 +bar: bar.in2 1.21 + 1.22 +baz: baz.in2 1.23 +baz: baz.in1 1.24 + test "$<" = "baz.in1" 1.25 + test "$^" = "baz.in1 baz.in2" 1.26 + @echo TEST-PASS 1.27 + 1.28 +foo.in1 bar.in1 bar.in2 baz.in1 baz.in2: