help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: associated lists


From: Ken Smith
Subject: Re: associated lists
Date: Thu, 23 Jun 2005 15:54:18 -0400
User-agent: Mutt/1.5.9i

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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make




reply via email to

[Prev in Thread] Current Thread [Next in Thread]