2 ms·
The benefit of make is that large programs that are built by slow compilers can be incrementally rebuilt much faster in the face of small changes. Something tha
by kazinator 3y ago
The benefit of make is that large programs that are built by slow compilers can be incrementally rebuilt much faster in the face of small changes. Something that would take 40 minutes to do a full rebuild can build in three seconds or whatever.
If your static site can be generated from scratch in under a second by just catting a few hundred HTML files with a common header, there is no benefit to using make over a script. You only risk performing an incomplete build due to a bug in the dependencies.
- toast0 3y agoIf the file dependencies don't actually matter, you can mark the build targets as .phony And still get to have things like make build vs make push, etc.
- kazinator 3y agoIf dependencies don't matter, make isn't the right tool. Your scripted actions can be ./build and ./push. If you feel you need to type the name of a tool before your command, you can do that: sh build, sh push.
- mixmastamyk 3y agoFilling your project namespace with a half dozen 2 -3 line scripts is not a big win. One script with a switch case might be better.