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/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make