I have following construct. When I run substituting eval with warning it shows the
correct rules constructed. When run using eval it cannot find the rules. Am I missing
something ?
-vj
COMMONSRC := a.c \
xyz\b.c \
pqr\abc\d.c
SRC := $(COMMONSRC)
define SRC_CP_template
$(1): $(2)
echo $(1) needs to be copied
endef
$(foreach source,$(SRC),$(eval $(call SRC_CP_template,$(addprefix
$(VAR1)\,$(source)),$(addprefix $(VAR2)\, $(source)))))
tst : $(addprefix $(VAR1)\,$(SRC))
echo $!
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/help-make