[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #18305] target specific variables with conditional assignments
From: |
Oliver Kiddle |
Subject: |
[bug #18305] target specific variables with conditional assignments |
Date: |
Wed, 15 Nov 2006 12:44:31 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.1) Gecko/20061024 Firefox/2.0 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #18305] target specific variables with conditional assignments,
Oliver Kiddle <=