Hi,
I have a problem with target-pecific variables. A Makefile to demonstrate
it
a = 1
bug: a +=
again-work: a +=
again-work: a += 2
work bug again-work:
@echo "$@: a = $(a)"
I expect
$ make bug
bug: a = 1
But I see only
$ make bug
bug: a =
The other targets give me no surprise
$
Hi,
some time ago (Sun, 3 Nov 2002 17:03:25 +0200) I posted an example
that showed strange results with the target specific += operator.
Now I found the time to fix the problem with the attached patch,
i.e. the example
Makefile start ===
.PHONY: targ
targ:
@echo "