David Wuertele wrote: > > Noel> What about the possibly-not-so-obvious use of $(foreach) and $(eval)? > > I tried $(foreach), but I was not able to make it generate a pattern. > I was doing something like this: > > $(foreach program,$(PROGRAMS),$(program): $($(program)_OBJ)) > > For some reason, the iterated rules do not get parsed.
Yeah, you need $(eval) (be sure you're using gmake-3.80 with the $(eval) patches): $(foreach p,$(PROGRAMS),$(eval $(p): $($(p)_OBJ))) HTH, Noel -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
