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 <ewan.dela...@gmx.fr> 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 > Help-make@gnu.org > https://lists.gnu.org/mailman/listinfo/help-make _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make