Variables in GNU Make: Simple and Recursive
cross-posted from: 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.
![](https://kbin.life/media/cache/resolve/entry_thumb/5c/0a/5c0aee701bb4d949b3e14b589a2afc13d9f3ce04e60fe8708c626b2551e3b720.png)