Variables in GNU Make: Simple and Recursive ( www.bahmanm.com )

cross-posted from: https://lemmy.ml/post/4908824

There are two major flavours of variables in GNU Make: "simple" and "recursive".

While simple variables are quite simple and easy to understand, they can be limiting at times. On the other hand, recursive variables are powerful yet tricky.

...

There is exactly one rule to recall when using recursive variables...

🧠 The value of a recursive variable is computed every time it is expanded.

JoYo ,
@JoYo@lemmy.ml avatar

it's that illegal?

bahmanm OP ,
@bahmanm@lemmy.ml avatar

Uh, I'm not sure I understand what you mean.

JoYo ,
@JoYo@lemmy.ml avatar

RMS notoriously fought against variables in make

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • programming@lemmy.ml
  • test
  • worldmews
  • mews
  • All magazines