URL: <http://savannah.gnu.org/bugs/?26001>
Summary: Evaluating eval expressions does not work for % type names Project: make Submitted by: None Submitted on: Wed 25 Mar 2009 11:42:30 PM UTC Severity: 3 - Normal Item Group: Enhancement Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.81 Operating System: POSIX-Based Fixed Release: None _______________________________________________________ Details: I have a situation where I have one to many compilation stage. Essentially, I have one file that when "compiled"/loaded creates N number of output files. Now , I have a makefile that I want to set up a dependency where if any of those compiled files were older than the original then I want to re-compile the original file and remake the N files over again. So, what I did was create a simple reverse mapping function using the define ...endef expression. However, I cannot apply this in a rule . For instance file%: $(call reverseLookup,file%) will fail. although this will not FILE1: $(call reverseLookup,file1) file%: $(FILE1) And this works as well FILE1: $(call reverseLookup,file1) file%: $(FILE1) @echo "Your dependency was $(call reverseLookup,$@)" _______________________________________________________ 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