3 ms·
Going to throw out my 2 cents here: 1. I don't like multiple makefiles. Icky with lots of duplication and high maintenance. Bad article. 2. When possible I us
by ascotan 7y ago
Going to throw out my 2 cents here:
1. I don't like multiple makefiles. Icky with lots of duplication and high maintenance. Bad article.
2. When possible I use target expansion to generate targets in the main makefile:
APPS:= app1 app2 app3
$(APPS:%=build.%)
3. I prefer to use makefile functions rather than reaching for "bash" where possible: https://www.gnu.org/software/make/manual/html_node/Functions.html#Functions https://www.gnu.org/software/make/manual/html_node/Functions...
4. If something is really complicated - extract to bash
Make has been written in 10K languages and the original is still the best