Re: Are pattern variables additive?

2004-01-13 Thread Paul D. Smith
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

Are pattern variables additive?

2004-01-13 Thread David Caldwell
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 ___