Update of bug #29757 (project make):
Status: None => Not A Bug
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #3:
Although you may find it undesirable, make is behaving correctly here. A
variable assignment that appears in a target-specific context is not evaluated
AT ALL until the target is about to be invoked. By the time the target is
invoked, the value of "deferred_var" is now "nothing" and so make's behavior
is correct.
The way in which target-specific variables work means that there is no
possible way in which they can be expanded when they are defined in the
makefile. Remember that target-specific variables are _inherited_ via the
prerequisite relationship, so the initial value of static_var to append to
CANNOT BE KNOWN until the target is to be built, because only then do we know
what its parent target context is.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29757>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make