bug-make
[Top][All Lists]
Advanced

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

Re: Possible problem / misunderstanding in make manual


From: Paul Smith
Subject: Re: Possible problem / misunderstanding in make manual
Date: Thu, 12 May 2011 08:15:43 -0400

On Thu, 2011-05-12 at 10:10 +0200, Julien Palard wrote:
> 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

That's because the online manual describes the latest released version
of GNU make (3.82) but your system is using an older version where this
feature is not supported.

You should use the version of the manual that came with your system,
that matches the version of make, or else upgrade your version of make
to the latest.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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