News for hackers. Stuff that matters.
Re:Tired of Makefiles by deathanatos on Monday May 13, 2024 @06:29PM (#40349307)
I find `just` to be better suited than `make` for this use case: https://github.com/casey/just

The sibling's comment (re. just shell in files) is good too, and often I'll put all the various commands into a subdir, and `just` is just an interface to that, particularly so if a given script/command gets complex.

Then, `just` is really a signal "hey, this repo supports this interface" and things like `just -l` for discoverability.

Re:Tired of Makefiles by cassianoleal on Monday May 13, 2024 @06:43PM (#40349434)
I have never used just, but one major advantage of make is that it pretty much exists everywhere - I can assume it's present and I'll be right almost every time.
Re:Tired of Makefiles by eikenberry on Monday May 13, 2024 @06:57PM (#40349544)
Just looks nice but isn't very prevalent yet. One of make's strengths is that it is everywhere.
Re:Tired of Makefiles by banish-m4 on Tuesday May 14, 2024 @01:27AM (#40351907)
Sigh. The problem is just isn't as portable and doesn't do cached file dependencies. It tries to be better than make but it's a step backwards, more like yet another shell language.
Re:Tired of Makefiles by timw4mail on Tuesday May 14, 2024 @09:25AM (#40354999)
The lack of cached dependencies is an advantage in most non-compiled languages, though.