News for hackers. Stuff that matters.
Re:I Like Makefiles by darby_nine on Saturday September 21, 2024 @02:08AM (#41607861)
Why not just use make? I am constantly confused by people reinventing the wheel with new syntax and little benefit
Re:I Like Makefiles by eloisant on Saturday September 21, 2024 @06:19AM (#41608956)
Because make is a huge PITA
Re:I Like Makefiles by maccard on Saturday September 21, 2024 @06:25AM (#41608984)
When step one of using a tool is to disable the tools primary benefit (everything is phone) you’re reaching for the wrong tool. Like it or lump it, make deploy is much neater than docker build -t foo . && docker tag foo $item && docker login && docker push && helm apply

I wish there was a flag for make which set it to be a command runner by default for the current makefile.

Re:I Like Makefiles by darby_nine on Saturday September 21, 2024 @11:42AM (#41610677)
Make's clear benefit is laying out a process as a series of dependencies.
Re:I Like Makefiles by deepsun on Saturday September 21, 2024 @10:04AM (#41610055)
Why not just use shell scripts? Why additional complexity?
Re:I Like Makefiles by darby_nine on Saturday September 21, 2024 @11:41AM (#41610671)
Shell scripts are additional complexity? I'm not sure what you mean. Adding structure reduces complexity.
Re:I Like Makefiles by deepsun on Monday September 23, 2024 @12:11PM (#41627627)
No I mean Makefiles, how author uses them, are additional complexity over shell scripts.

The whole difference of Makefiles, their original idea was to not re-compile a target _file_ if it's already there. So if you need .PHONY -- you're using Makefiles wrongly.

Re:I Like Makefiles by xigoi on Saturday September 21, 2024 @10:31AM (#41610218)
Because they have different purposes. make is a build system, just is a command runner.
Re:I Like Makefiles by darby_nine on Saturday September 21, 2024 @11:41AM (#41610669)
What's the distinction? What do just do better than make?
Re:I Like Makefiles by xigoi on Saturday September 21, 2024 @11:43AM (#41610681)
Re:I Like Makefiles by kaba0 on Saturday September 21, 2024 @04:10PM (#41612372)
Make is hardly a build system
Re:I Like Makefiles by mldbk on Saturday September 21, 2024 @02:21PM (#41611690)
Honestly, it is because make is not written in Rust ;-)

This is a sect and global trend to reinvent and re-implement the wheel with the Rust :D