In GNU make 3.80, only the first pattern-specific variable definition
that matches a given target is used.
In future releases all pattern-specific variable definitions that match
are used, in the order in which they were defined. This change has
already been made in the source. With the latest v
A simple test case:
x="hello"
%.b: x+="a"
%.a.b: x+="a+b"
david.a.b: x+="c"
david.a.b:
@echo $(x)
$make -f pattern-vars.make david.a.b
hello a c
$make -v
GNU Make 3.80
I would have expected the output to be "hello a a+b c" or perhaps "hello
a+b a c".
Is this a bug?
-David
___