|
| From: | Julien Palard |
| Subject: | Possible problem / misunderstanding in make manual |
| Date: | Thu, 12 May 2011 10:10:48 +0200 |
make assumes it to be ‘=’"define PROGRAM_template = $(1): $$($(1)_OBJS) $$($(1)_LIBS:%=-l%) ALL_OBJS += $$($(1)_OBJS) endef
This example works for me only if I remove the '=' sign, so I tried a most simple test :
define swap
$(2) $(1)
endef
all:
@echo $(call swap,foo,bar)
| [Prev in Thread] | Current Thread | [Next in Thread] |