How I stopped worrying and loved Makefiles
11–20 of 144 posts
Re: How I stopped worrying and loved Makefiles
#12Ninja is simple and fast, but intentionally limited in order to not be programmable. Make is powerful and versatile (especially the GNU variant) but has an arcane syntax and lots of pitfalls. I feel that there is a niche between make and ninja for the task runner.
I think that's called CMake.
Re: How I stopped worrying and loved Makefiles
#13Ninja is simple and fast, but intentionally limited in order to not be programmable. Make is powerful and versatile (especially the GNU variant) but has an arcane syntax and lots of pitfalls. I feel that there is a niche between make and ninja for the task runner.
> I feel that there is a niche between make and ninja for the task runner. I think that's called CMake.
Re: How I stopped worrying and loved Makefiles
#14Re: How I stopped worrying and loved Makefiles
#15If you’re really looking for a tool to collect small steps/script I highly recommend you check out the ‘just’ cli tool. It’s completely replaced our use of Make and the syntax is much easier.
Re: How I stopped worrying and loved Makefiles
#16https://marmelab.com/blog/2016/02/29/auto-documented-makefil...
Re: How I stopped worrying and loved Makefiles
#17Re: How I stopped worrying and loved Makefiles
#18Re: How I stopped worrying and loved Makefiles
#19My favourite (ab)use of `make` is as a batch runner: https://news.ycombinator.com/item?id=32441602 This (ab)use of `make` runs multiple times a day, every day, and works perfectly every time. The inspiration of this was an (ab)use of `make` as a way to paralellize Linux system startup: https://web.archive.org/web/20110606144530/http://www.ibm.co...
https://github.com/matheusmoreira/.files/blob/master/GNUmake...
I'm surprised at how well this thing works every time I use it. I even blogged about it.
https://www.matheusmoreira.com/articles/managing-dotfiles-wi...
Recently made a tool that processes the make database and prints the phony targets and their dependencies:
https://github.com/matheusmoreira/.files/blob/master/~/.loca...
I use it as a sort of makefile help command. Works surprisingly well too.
Re: How I stopped worrying and loved Makefiles
#20Ninja is simple and fast, but intentionally limited in order to not be programmable. Make is powerful and versatile (especially the GNU variant) but has an arcane syntax and lots of pitfalls. I feel that there is a niche between make and ninja for the task runner.
> I feel that there is a niche between make and ninja for the task runner. I think that's called CMake.