bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible problem / misunderstanding in make manual


From: Julien Palard
Subject: Possible problem / misunderstanding in make manual
Date: Thu, 12 May 2011 10:10:48 +0200

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
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 - <address@hidden>
CTO - meltynetwork.fr
Mobile : +33 (0)6 21 19 49 10
Office : +33 (0)1 83 62 00 85





--
Julien Palard - <address@hidden>
CTO - meltynetwork.fr
Mobile : +33 (0)6 21 19 49 10
Office : +33 (0)1 83 62 00 85



reply via email to

[Prev in Thread] Current Thread [Next in Thread]