main shinobi / tests / mk / gnu / features / patspecific_vars / t006 / mk
 1
 2.PHONY: all
 3
 4all: inherit := good $$t
 5all: bar baz
 6
 7b%: pattern := good $$t
 8
 9global := original $$t
10
11
12# normal target
13#
14ifdef rec
15bar: a = global: $(global) pattern: $(pattern) inherit: $(inherit)
16else
17bar: a := global: $(global) pattern: $(pattern) inherit: $(inherit)
18endif
19
20bar: ; @echo 'normal: $a;'
21
22
23# pattern target
24#
25ifdef rec
26%z: a = global: $(global) pattern: $(pattern) inherit: $(inherit)
27else
28%z: a := global: $(global) pattern: $(pattern) inherit: $(inherit)
29endif
30
31%z: ; @echo 'pattern: $a;'
32
33
34global := new $$t