posted in Technology
I think we should use makefile
jeferson.me/blog/2026/11/27/in-defense-of-makefileposted in Technology
I think we should use makefile
jeferson.me/blog/2026/11/27/in-defense-of-makefileReplying to @Shin@piefed.social
After using just I will never go back to make.
Make is a useful tool because you can rely on some flavour of it being present in most systems. Like being able to use vi, or shell scripts.
Replying to @budget_biochemist@aussie.zone
“some flavor” is pretty much exactly what’s not good about it.
GMake is the only make worth using, IMO - for build systems. For script handling, just reigns supreme.
Just (no pun intended) a small question: Why should one choose it over something like make, ninja? How good is it integrated into build systems like meson or CMake?
Replying to @sakphul@discuss.tchncs.de
It isnt at all, but I really like it as runner to not remember commands in some repos.
Ok, but then it sounds to me like a “fancy way to combine shell scripts into a single entitiy/command”. Isn’t it?
Replying to @sakphul@discuss.tchncs.de
In the end yes, maybe. But it brings so much convenient to commands that’s its not comparable to make in this regard IMO.
Replying to @Shin@piefed.social
And I think you should use definite article.
Replying to @Shin@piefed.social
This is really badly written, I had to re-read parts multiple times because they were nearly incomprehensible.
Dear author: Please proofread your blogpost next time!
Replying to @Shin@piefed.social
Unfortunately there’s nothing enforcing good standards that allow most projects to be cross-compiled. Always some weird lib lookup that bypasses a sysroot definition or some compiler check that hits the host arch instead of the target.
Replying to @Static_Rocket@lemmy.world
Note that you can wrap whatever build system you want in a simple makefile.
I tend to provide a makefile because I get tired of other projects having who knows what entry point, so I like providing a courtesy Makefile to get someone going.
Replying to @jj4211@lemmy.world
Oh yeah, I’ve (ab)used makefiles for so many things. Oddly enough I think they are great for most tasks, excluding C compilation now. I implemented a download manager in makefiles once. It’s great for hacking, but any serious project I make is going to be meson based. It’s also got issues (pkg-config vs pkgconf), but it’s at least somewhat standardized.