On Thu, 2010-12-09 at 03:26 -0800, AdamWainwright wrote: > PROGS=../xxx > > $(PROGS): $(addsuffix .y, $(@F)) > cp $(@F).y $@
You can't use $@ in the prerequisite lists; that value is not set until much later when make actually tries to invoke the rule. In this case you want to use pattern rules, most likely. If you really want to do this you can enable .SECONDEXPANSION then use $$(@F:%=%.y) or similar (see the GNU make manual. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
