|
| From: | Gisle Vanem |
| Subject: | Re: Expansion of $(eval..) |
| Date: | Sat, 22 Jan 2022 19:24:37 +0100 |
| User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
Paul Smith wrote:
You probably want to escape the non-argument references, so that call
will not run them and instead they will be passed to eval:
define add_c_src
VPATH += $(1)
C_SRC += $$(addprefix $(1)/, $(2))
$$(info Number of 'C_SRC': $$(words $$(C_SRC)))
endef
That's much better. And many thanks for the explanation. -- --gv
| [Prev in Thread] | Current Thread | [Next in Thread] |