Replies: 2 comments 1 reply
-
You're correct, "a.out": "main.c"
cc main.c There's a lot more to figure out and implement, so it'll be a while before it's ready. In particular, Make has a lot of gotchas, so I want to make sure I avoid those.
Yup, that's correct. And you could also look at something like |
Beta Was this translation helpful? Give feedback.
-
I've been wondering about this too, so thanks for bringing it up pat and thanks for responding casey. I really make use of the dependencies for building stuff, but I think just is awesome. So I've kept using Makfiles for most things, and justfiles for the things that are just jobs. |
Beta Was this translation helpful? Give feedback.
-
It's been really easy to get going with just.
One thing I'm curious about: does it support make-like file dependencies, so it won't run a command if the file is up-to-date?
I think it doesn't, but I want to double check.
In that case, I think I can conclude two things:
just
is essentially across-platformnon-make-variant-specific replacement for.PHONY
tasks (yes I've seen the idiosyncrasies FAQ)make
.In other words, it gets me a "best tool for the job." Use
make
for generating files, andjust
for defining commands that I would otherwise shoehorn into.PHONY
tasks. Does that sound right?Beta Was this translation helpful? Give feedback.
All reactions