3 ms·
You don’t need to use all of make’s features (I’ve been using it for something like 30 years and still can’t fathom sets of it). But TBH I just don’t see anythi
by rcarmo 4y ago
You don’t need to use all of make’s features (I’ve been using it for something like 30 years and still can’t fathom sets of it). But TBH I just don’t see anything in those Justfiles I couldn’t do with make without needing to do anything special…
- 0cf8612b2e1e 4y agoGetting the list of make targets by default is pretty nifty. As is not having to preface everything with PHONY. Do any of these make alternatives reinvent the paradigm? No, but they do offer some quality of life improvements I wish were within reach without jumping through hoops.
- enriquto 4y agoWhat's the problem with ".PHONY" ? Just the name ? Would it be alright for you if it had a different name, like "INTERFACE" or "COMMANDS", or "NOFILE" ? I never thought about .PHONY as a workaround to anything. Just a slightly unnecessary annotation that you may add to the makefile if you want to be pedantically correct.
- simonw 4y agoI'm sure you can do that stuff with Make. Like I said though, I have tried and failed to get Make to stick for me in the past. Maybe it's just that my brain has such a strong negative reaction to that PHONY hack that I was never able to get past it. Maybe Just's tagline should be "it's Make, but you don't have to remember what PHONY means".
- falcolas 4y agoAll phony means is there’s no output file. And frankly, it works fine without phony, unless you accidentally create that file. Make’s built around creating files. Phony works around that.
- vorpalhex 4y agoInvoking scripts with a language env and arguments both stand out to me. Both are possible in make, but are extremely non-obvious and come with a bunch of caveats and require some heady code blobs at the beginning of the file.
- pletnes 4y agoMake is a mess to install on windows. Just just works.
- dividedbyzero 4y agoMost people don't have the advantage/burden of three decades of experience with the tool. Make's only advantage as a task runner I see is being ubiquitous. If that isn't a concern, no reason to use upper Pleistocene Make that isn't even a task runner over a more ergonomic tool. Make is so warty I have yet to see a team using Makefiles not run into any of its idiosyncrasies, but with just? Smooth sailing. Just works. No surprises. I'm a fan.