[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible bug with pattern-specific variables
From: |
Markus F.X.J. Oberhumer |
Subject: |
Possible bug with pattern-specific variables |
Date: |
Wed, 27 Sep 2023 08:03:54 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
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, <markus@oberhumer.com>, http://www.oberhumer.com/
- Possible bug with pattern-specific variables,
Markus F.X.J. Oberhumer <=