Re:Makefile Tutorial by Example
by emsy on Friday July 31, 2015 @06:22AM
(#9980939)
I understand that people need resources to understand the Makefiles of existing projects, but I fear that tutorials might encourage people to use Make in new projects. Yes, I really want to extinguish Make. Other build tools are also "bad" but Make deserves a special place in hell.
[ Parent
| on HN ]
Been using Make for decades, I don't see the problem. It works sufficiently well to be in use in a lot of my projects as a comfortable and productive environment. As with all 'tool X must die' conversations, one must always end with the only relevant conclusion that should be made: ymmv.
Re:Makefile Tutorial by Example
by Sir_Substance on Friday July 31, 2015 @07:52AM
(#9981176)
In this case, there are genuinly better options.
CMake, for example, is less arcane, and can also generate project files for visual studio.
I'd agree that make shouldn't really be the go-to choice for brand new projects. It's limitations can encircle new projects.
Re:Makefile Tutorial by Example
by TorKlingberg on Friday July 31, 2015 @08:15AM
(#9981245)
CMake generates makefiles, at least as I have used it, so you need to understand makefiles to debug any build problems.
Re:Makefile Tutorial by Example
by Sir_Substance on Friday July 31, 2015 @09:11AM
(#9981472)
It's true, but it has the benefit that your makefiles are now complient with every other cmake users makefiles, and not special snowflakes. That makes it more likely that someone has already had your problem and posted a turnkey solution.