Hacker News new | ask | show | jobs
by marcv81 3214 days ago
Friends don't let friends write Makefiles at all. The author does not appear to be familiar with them, except for the trivial examples in this post.
2 comments

The types of trivial examples in the post are exactly what you should use makefiles for. make excels at managing simple file transformations: you get into trouble when you try to do complex cross-platform scripting with it.
Every folder gets its own little makefile. Calling those recursive shouldnt result in trouble?
You might like "Recursive Make Considered Harmful", Miller.

http://aegis.sourceforge.net/auug97.pdf

Although I suspect the main complaint (slow, due to checking directories where nothing has changed) has mostly been swept under the rug by increased CPU speeds some of the other items (managing dependencies, ordering, ...) are still worth considering today.

Tup solves this: http://gittup.org/tup/