[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #26001] Evaluating eval expressions does not work for % type names
From: |
Paul D. Smith |
Subject: |
[bug #26001] Evaluating eval expressions does not work for % type names |
Date: |
Sun, 31 May 2009 20:11:41 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10 |
Update of bug #26001 (project make):
Status: None => Not A Bug
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
Olexiy is mostly correct: if you don't escape the call then it will be
expanded as the makefile is read in, as with all variables and functions that
appear in prerequisites. At that time, the pattern "%" is not a special value
so basically you're calling the reversLookup function with the literal string
"file%", which obviously won't do what you want.
What you need to do, if you want to do this, is define the .SECONDEXPANSION:
pseudo-target then do something like:
file%: $$(call reverseLookup,$$@)
See the section on "Secondary Expansion" in the GNU make manual.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?26001>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #26001] Evaluating eval expressions does not work for % type names,
Paul D. Smith <=