10
In defense of Makefile
(jeferson.me)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Should be said, though, that
justlooks superficially similar, but is a very different tool.justis a way of aliasing commands/scripts. You can do that withmakeas well, by whacking.PHONYonto everything, but it really isn't what it was built for.makeis 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,
justworks best, if your language already has a build tool that you just need to call with different flags.makeis instead intended to be that build tool, and what it calls underneath is a compiler.