[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Target specific += has strange behaviour
From: |
Oliver Schmidt |
Subject: |
Target specific += has strange behaviour |
Date: |
Sun, 3 Nov 2002 17:03:25 +0200 |
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 ===============
gives the output:
targA: T=<1 2 3>
targB: T=<2 3>
targC: T=<2>
This happens with GNU Make Version 3.79.1 and 3.80.
In my opinion the output for targA should be "targA: T=<2 3>".
Best regards,
Oliver
- Target specific += has strange behaviour,
Oliver Schmidt <=