bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #29757] Target-specific variables change their flavor


From: Paul D. Smith
Subject: [bug #29757] Target-specific variables change their flavor
Date: Thu, 01 Jul 2010 06:11:04 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]