[Top][All Lists]

[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: Wed, 11 May 2011 11:06:37 +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 :
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 :
is an example :

 define PROGRAM_template =
  $(1): $$($(1)_OBJS) $$($(1)_LIBS:%=-l%)
  ALL_OBJS   += $$($(1)_OBJS)

This example works for me only if I remove the '=' sign, so I tried a
most simple test :

define swap
$(2) $(1)

    @echo $(call swap,foo,bar)

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

Julien Palard - <address@hidden>
CTO - meltynetwork.fr <http://www.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]