Hacker News new | ask | show | jobs
by ascotan 2385 days 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...

4. If something is really complicated - extract to bash

Make has been written in 10K languages and the original is still the best