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 <psm...@gnu.org>          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


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to