[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Eval
From: |
Mike Gibson |
Subject: |
Eval |
Date: |
Tue, 15 Apr 2003 11:17:20 -0700 |
User-agent: |
KMail/1.4.3 |
I'm trying to use eval to create rules automatically and I use foreach to
generate a bunch of rules:
define make_rule
$(1) : $(1).a
command $(1).a
endef
LIST := foo bar joe jane
$(foreach value,$(LIST),$(eval $(call make_rule,$(value))))
Which works. If I then try to split the foreach line like this:
$(foreach value,$(LIST),\
$(eval $(call make_rule,$(value))))
I get:
Makefile:30: *** missing separator. Stop.
Could someone please explain this?
Mike Gibson