could someone please explain as to why this is the behavior of
target-specific variable?
the output that I'm expecting is

[expected output]
target1, bar1 bar2
target2, bar1

but this is what i got instead

[real output]
target1, bar1 bar2
target2,


[makefile]
foo := bar1

all : target1 target2

target1 : foo += bar2
target1 :
        @echo target1, $(foo)

target2 : foo += 
target2 :
        @echo target2, $(foo)

_______________________________________________
help-gnu-utils mailing list
help-gnu-utils@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to