[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: 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:


  Message sent via/by Savannah

reply via email to

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