Very stange GNU make behaviour with pattern-specific variables - note
the "X X X" in the output below:

$ env FOO=X BAR=Y make
FOO='X  ' BAR='Y  '

$ make FOO=X BAR=Y
FOO='X X X' BAR='Y'

It this really intended?

~Markus


$ cat Makefile

default: build/release

build/%: FOO +=
build/%: FOO +=
BAR +=
BAR +=

build/release:
        @echo "FOO='$(FOO)' BAR='$(BAR)'"

.PHONY: default build/release


# END of Makefile



-- 
Markus Oberhumer, <mar...@oberhumer.com>, http://www.oberhumer.com/

Reply via email to