URL:
<http://savannah.gnu.org/bugs/?18305>
Summary: target specific variables with conditional
assignments
Project: make
Submitted by: opk
Submitted on: Wednesday 11/15/2006 at 13:44
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Component Version: 3.81
Operating System: Any
Fixed Release: None
_______________________________________________________
Details:
If a target-specific conditional variable assignment is used, it
unconditionally overrides any inherited target-specific variable. Try the
following Makefile with and without the first line. The command is always run
with the argument 'two'.
all: TARGET = one
all: lib
lib: TARGET ?= two
lib:
make -f second.mk $(TARGET)
The bug might arguably be that the target-specific variable is being
inherited at all though that's actually a useful feature for me. I can get
this Makefile to work as I want by using $(or $(TARGET),two).
Oliver
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?18305>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make