You could use pairmap from the GNU Make Standard Library. It uses lisp-like recursion instead of foreach to call a function for each pair of variables.
http://gmsl.sourceforge.net/ Ken On Thu, Jun 23, 2005 at 03:06:52PM -0400, Levent Yilmaz wrote: > I have a set of associated pairs. And want to execute some command on > each pair. Say for example, > > # define present-past tense pairs as follows > present_tense = go do sit call > past_tense = went did sat called > > # somehow generate this phony command for each pair > # using eval (or by other(?) means) > @echo $(present) today. $(past) yesterday. > > > What I want to accomplish in effect is simply using $(foreach ...) but > iterate simultaneously through more than one list... > > Any ideas? > > thank you > - L. > > > > _______________________________________________ > Help-make mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-make _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
