[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #39485] target specific make variables are incorrectly accumulated
From: |
Paul D. Smith |
Subject: |
[bug #39485] target specific make variables are incorrectly accumulated |
Date: |
Sun, 14 Jul 2013 22:51:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36 |
Update of bug #39485 (project make):
Status: None => Not A Bug
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
This is defined as the correct behavior for target-specific variables; from
the GNU make manual:
There is one more special feature of target-specific variables: when
you define a target-specific variable that variable value is also in
effect for all prerequisites of this target, and all their
prerequisites, etc. (unless those prerequisites override that variable
with their own target-specific variable value).
The idea is to support usages such as:
DEBUGFLAGS =
all: thisprog thatlib
debug: all
debug: DEBUGFLAGS = -g
Now when you run "make" you'll get the non-debug version (DEBUGFLAGS is
empty), but when you run "make debug" you get the debug version (DEBUGFLAGS is
set to -g).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39485>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/