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
[ Parent
| on HN ]
Because make is a huge PITA
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.
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.
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.
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?
Make is hardly a build system