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

Reply via email to