[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
probs with eval
From: |
Vikas Joshi |
Subject: |
probs with eval |
Date: |
Tue, 19 Oct 2004 16:30:38 -0600 |
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 $!
- probs with eval,
Vikas Joshi <=