help-make
[Top][All Lists]
Advanced

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

Re: How to interpret commands between colon and first tab ?


From: Dan Kegel
Subject: Re: How to interpret commands between colon and first tab ?
Date: Mon, 23 Nov 2015 09:52:52 -0800

I think with := it gets evaluated upon assignment, but with = it gets
evaluated on each use?

On Mon, Nov 23, 2015 at 9:46 AM, Ewan Delanoy <address@hidden> wrote:
>    > The above introduces a rule "all:" which has no prerequisites and no
>    recipe
>
>    But some 70 lines after that "all:", a tab-at-beginning-of-line
>    appears,  before the declaration of the next target. It appears as
>    follow :
>
>      CXX_FOR_TARGET_FLAG_TO_PASS = \
>    [TAB CHARACTER HERE]    "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
>    # CXX_FOR_TARGET is tricky to get right for target libs that require a
>    # functional C++ compiler.  When we recurse, if we expand
>      In that situation, this tab does not indicate a recipe then ?
>
>    >These rest are just variable assignments, using the ":=" simple
>    variable assignment syntax.
>
>     Sure, but the thing I wanted to know is whether the command inside the
>     backticks gets executed when the variable is assigned, or not ? It
>    would be in
>     shell syntax. In makefile syntax I don't know
> _______________________________________________
> Help-make mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-make



reply via email to

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