Update of bug #17665 (project make):
Status: None => Not A Bug
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
> I do not know if this is intentional, a bug, or simply been
> forgotten to write down in the documentation.
None of the above. You are just misunderstanding what's happening. See the
section "How make Reads a Makefile"; it will explain that targets and
prerequisites are expanded immediately as the makefile is being read in. The
section on automatic variables will explain that these variables are not
instantiated until much later, when make is running the rule. So, the value
of $@ when make reads the makefile is the empty string, which means your
patsubst in the prerequisite list is a no-op.
The most straightforward way to do what you want is to use the secondary
expansion feature recently added to GNU make. See the .SECONDEXPANSION
target and associated documentation in the GNU make manual for more details.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?17665>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make