Hi,
the following patch corrects the described bug, i.e. the makefile
=== Makefile Begin ==
a = 1
targ: a +=
targ:
@echo "$@: a = $(a)"
=== Makefile End ===
gives now the correct answer: "targ: a = 1".
Best Regards,
Oliver
Index: expand.c
===
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 "
Hi,
the following makefile:
Makefile start ===
.PHONY: targ targA targB targC
targ: targA targB targC
targA targB targC:
@echo "$@: T=<$T>"
T := 1
targA: T = 2
targA: T += 3
targB: T := 2
targB: T += 3
targC: T = 2
Makefile end ===
gi