3 ms·
A bit off-topic, but I think still relevant: I've fallen in love with justfiles for all the non-build-related things I'd have used Makefiles for. Make is incred
by kstrauser 3y ago
A bit off-topic, but I think still relevant: I've fallen in love with justfiles for all the non-build-related things I'd have used Makefiles for. Make is incredibly powerful. Sometimes that power makes the simple things a little harder to express. In those cases, Just warms my jaded heart.
In short, I use make when I'm building a C project and want to model build dependencies as a DAG. I use just when I want to write a bunch of convenient entry points for a project like `just build` (e.g. calling `cargo build`), `just test` (running all the tests no matter what language I'm using), and so on.
- CableNinja 3y agoI use makefiles for my automation. I built some bootstrap functions that reach for a separate git repo (no submodules for ease of update in certain cases), and then in that repo is the real meat, built in an easily extensible way. I have generic targets like `build`, but that build call actually executes all *_build` targets. And its all auto documented help via comments and grepping. Bit over engineered but i love usin and modifying it
- tnorthcutt 3y agoDropping a link here for convenience: https://github.com/casey/just https://github.com/casey/just
- kitd 3y agoThank you. It's not a search-friendly name
- silverwind 3y agoUnfortunately, Just is a stupid task runner. It has no dependency tracking, which is the real power of Make.
- kstrauser 3y agoThat’s what makes it beautiful: it’s optimized for running tasks, with options to show all the “recipes” (with docs), accept arguments, etc.