News for hackers. Stuff that matters.
Re:Autodafe: Tools for freeing your project from the clammy ... by maxcoder4 on Sunday April 07, 2024 @04:55AM (#39959382)
I never got the hate for Makefiles. Granted I mostly use them for simple projects, but compiling C project takes just a few lines of code (compile .c to .o, .o to executable, optionally provide some PHONY convenience utils) and is very readable and hackable. What's not to love?

I'm sure I'm missing something, and it's possible that they don't scale well, but I prefer it to any other could system for small C projects.

Re:Autodafe: Tools for freeing your project from the clammy ... by finaard on Sunday April 07, 2024 @05:41AM (#39959622)
Problem is that you have a wide range of makes with different syntax. It has gotten better nowadays where GNU make is available pretty much everywhere, but two decades ago you'd have a range of incompatible makes on different UNIX systems, plus a bunch of incompatible makes on Windows as each compiler would come with its own make.

Assuming you can ignore Windows you'd typically end up with two makefiles (Makefile and GNUMakefile) and a bunch of includes sharing code all make variants understand.

Re:Autodafe: Tools for freeing your project from the clammy ... by grumbel on Sunday April 07, 2024 @05:47AM (#39959643)
With autotools you get DESTDIR, --prefix and a bunch of other things that work the same across all projects. With Makefiles everybody is rolling their own thing and you never know what to expect, or frequently have to implement those things yourself.

That said, autotools, with its multiple layers of file generation, makes debugging rather annoying. And it's generally much easier to fix a broken Makefile than figuring out why autotools goes wrong.