michael@0: # When a target is defined multiple times, the prerequisites should get michael@0: # merged. michael@0: michael@0: default: foo bar baz michael@0: michael@0: foo: michael@0: test "$<" = "foo.in1" michael@0: @echo TEST-PASS michael@0: michael@0: foo: foo.in1 michael@0: michael@0: bar: bar.in1 michael@0: test "$<" = "bar.in1" michael@0: test "$^" = "bar.in1 bar.in2" michael@0: @echo TEST-PASS michael@0: michael@0: bar: bar.in2 michael@0: michael@0: baz: baz.in2 michael@0: baz: baz.in1 michael@0: test "$<" = "baz.in1" michael@0: test "$^" = "baz.in1 baz.in2" michael@0: @echo TEST-PASS michael@0: michael@0: foo.in1 bar.in1 bar.in2 baz.in1 baz.in2: