• Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    9 days ago

    Should be said, though, that just looks superficially similar, but is a very different tool.

    just is a way of aliasing commands/scripts. You can do that with make as well, by whacking .PHONY onto everything, but it really isn’t what it was built for.

    make is instead a way of defining rules for how to transform files into other files. For that transformation, you’ll then use commands/scripts, but it’s really about defining a whole build system based on the rules.

    Perhaps in other words, just works best, if your language already has a build tool that you just need to call with different flags.
    make is instead intended to be that build tool, and what it calls underneath is a compiler.