summaryrefslogtreecommitdiff
path: root/build/pymake/tests/multiple-rules-prerequisite-merge.mk
blob: 480d3b58c428ec6c56018fb9dd3e977540e9d6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# When a target is defined multiple times, the prerequisites should get
# merged.

default: foo bar baz

foo:
	test "$<" = "foo.in1"
	@echo TEST-PASS

foo: foo.in1

bar: bar.in1
	test "$<" = "bar.in1"
	test "$^" = "bar.in1 bar.in2"
	@echo TEST-PASS

bar: bar.in2

baz: baz.in2
baz: baz.in1
	test "$<" = "baz.in1"
	test "$^" = "baz.in1 baz.in2"
	@echo TEST-PASS

foo.in1 bar.in1 bar.in2 baz.in1 baz.in2: