Makefiles fill that great need for a high-level 'scripting DSL', where you have a lot of different programs (or scripts), with a loose set of dependencies or order of operation, and you want a very simple way to call them, with some very simple logic determining the order, arguments to pass, parallelization, etc. Their ubiquity on all platforms makes it even easier to use them. I much prefer Make to alternatives like…
Seeing people reinvent make every 10 years is very frustrating. Just learn make!
How I stopped worrying and loved Makefiles
41–50 of 144 posts
Re: How I stopped worrying and loved Makefiles
#42I don't believe that.
Re: How I stopped worrying and loved Makefiles
#43Re: How I stopped worrying and loved Makefiles
#44Not for compiling, just as script runner.
I see this practice often and I haven't found a good reason
Re: How I stopped worrying and loved Makefiles
#45What's the rationale for using makefiles as script runners over just having a directory with scripts inside? Not for compiling, just as script runner. I see this practice often and I haven't found a good reason
Re: How I stopped worrying and loved Makefiles
#46What's the rationale for using makefiles as script runners over just having a directory with scripts inside? Not for compiling, just as script runner. I see this practice often and I haven't found a good reason
Re: How I stopped worrying and loved Makefiles
#47Re: How I stopped worrying and loved Makefiles
#48What's the rationale for using makefiles as script runners over just having a directory with scripts inside? Not for compiling, just as script runner. I see this practice often and I haven't found a good reason
... and if your scripts do all that, they've basically rebuilt make, but it's undocumented and worse.
(I say this as someone with LOTS of experience with make, and am not really a fan because I know too much and it's horrifying. But I dislike custom crippled versions even more.)
Re: How I stopped worrying and loved Makefiles
#49What's the rationale for using makefiles as script runners over just having a directory with scripts inside? Not for compiling, just as script runner. I see this practice often and I haven't found a good reason
Re: How I stopped worrying and loved Makefiles
#50When `make` is used as a glorified front-end to `bash` scriptlets, why not use `bash` directly instead of having two-level of scripting?
See: https://blog.aloni.org/posts/bash-functional-command-relay/