On Thu, 2010-12-09 at 17:03 -0500, Paul Smith wrote: > 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.
I should have said "static pattern rules" here. See the manual. Cheers! _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
