[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #17665] Content of computed variable name not considered as depende
From: |
Paul D. Smith |
Subject: |
[bug #17665] Content of computed variable name not considered as dependency |
Date: |
Sat, 9 Sep 2006 17:49:47 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060731 Ubuntu/dapper-security Firefox/1.5.0.5 |
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/