I have hard time to understand a part of the make manual, the problem can be
a typo of a subject not clearly expressed, here is the point :

In the page about multiline variables :
http://www.gnu.org/s/hello/manual/make/Multi_002dLine.html
A statement say that : "You may omit the variable assignment operator if you
prefer. If omitted, make assumes it to be ‘=’"

Then on the page about eval :
http://www.gnu.org/software/make/manual/html_node/Eval-Function.html#Eval-Function
<http://www.gnu.org/software/make/manual/html_node/Eval-Function.html#Eval-Function>There
is an example :


 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)


And again, this works without an equal sign after the define, and don't work
with it.

Bests,
-- 
Julien Palard - <jul...@meltynetwork.fr>
CTO - meltynetwork.fr <http://www.meltynetwork.fr>
Mobile : +33 (0)6 21 19 49 10
Office : +33 (0)1 83 62 00 85





-- 
Julien Palard - <jul...@meltynetwork.fr>
CTO - meltynetwork.fr <http://www.meltynetwork.fr>
Mobile : +33 (0)6 21 19 49 10
Office : +33 (0)1 83 62 00 85
_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to