Re: target-specific appending with an empty value

2003-07-07 Thread Oliver Schmidt
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 ===

Target specific += operator

2003-07-06 Thread Oliver Schmidt
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 "

Target specific += has strange behaviour

2002-11-03 Thread Oliver Schmidt
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