help-make
[Top][All Lists]
Advanced

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

Using foreach to define variables


From: Shaun Jackman
Subject: Using foreach to define variables
Date: Fri, 2 Jul 2010 18:21:59 -0700

Hi,

I'd like to use foreach to define variables like so:

==> Makefile <==
$(foreach i,a b c,$i=1)
all:
        echo $a $b $c

But I receive this error:
$ make
Makefile:1: *** missing separator.  Stop.

Can this be made to work?

Thanks,
Shaun





reply via email to

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