4 ms·
Friends don't let friends write recursive makefiles.
by verytrivial 9y ago
Friends don't let friends write recursive makefiles.
- marcv81 9y agoFriends 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.
- Pica_soO 9y agoEvery folder gets its own little makefile. Calling those recursive shouldnt result in trouble?
- zwp 9y agoYou might like "Recursive Make Considered Harmful", Miller. http://aegis.sourceforge.net/auug97.pdf 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.
- jhasse 9y agoTup solves this: http://gittup.org/tup/ http://gittup.org/tup/
- dangerbird2 9y agoThe 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.
- dangerbird2 9y agoIt seems like each of the folders with makes files having Makefiles also have a package.json, suggesting they are self-contained packages under the same repository. Still, it seems like a questionable move