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/



_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to