bug-make
[Top][All Lists]
Advanced

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

[bug #27047] Difficulties defining prerequisites for pattern targets.


From: Paul D. Smith
Subject: [bug #27047] Difficulties defining prerequisites for pattern targets.
Date: Sun, 02 Aug 2009 00:27:20 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.12) Gecko/2009070812 Ubuntu/8.04 (hardy) Firefox/3.0.12

Follow-up Comment #4, bug #27047 (project make):

The failure you are reporting is actually documented behavior; the
documentation for target-specific variables says:

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

So, they are not available for expansion in prerequisites.

As Boris points out you can use the secondary expansion feature for this, at
a slight performance penalty.

As for the pattern rule canceling behavior: I agree it's probably not the
best choice but it's been like that in GNU make since pattern rules were
invented and can't be changed now.

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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