bug-make
[Top][All Lists]
Advanced

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

[bug #17883] target-specific variables prevent builtin rules


From: anonymous
Subject: [bug #17883] target-specific variables prevent builtin rules
Date: Fri, 29 Sep 2006 09:52:40 +0000
User-agent: Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.8.0.1) Gecko/20060303 Firefox/1.5.0.1

Follow-up Comment #1, bug #17883 (project make):

To quote the info pages, section 6.10 "Target-specific Variable Values":

    As with automatic variables, these values are only available
    within the context of a target's command script (and in other
    target-specific assignments).

That is, they are normally _not_ available in the prerequisite list for the
target; the global value will be expanded there.

Solutions:
1) use the .SECONDEXPANSION magic target and use $$(objs) in the
   prerequisite lists.  Other makefile changes _might_ be
   necessary when .SECONDEXPANSION is used.  Check the info pages
   for details of usage.

2) drop the target-specific variables, declare the dependencies
   directly or using multiple global varibles (ala $(prog1_objs),
   etc), and then use $(filter %.o,$^) in the command instead of
   $(objs).


Philip Guenther


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?17883>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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