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/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make