Live data from Hacker News

How I stopped worrying and loved Makefiles

gagor.pro

1–10 of 144 posts

Re: How I stopped worrying and loved Makefiles

#3
For simple things, make is fine. It does file caching and the GNU tool does parallel concurrency.

For anything needing light-to-moderate software configuration management, cmake is readily available and simple.

If you're running a Google then you're using a build and DVCS that make use of extensive caching, synthetic filesystems, and tools that wrap other tools.

I won't say what not to use. ;)

Re: How I stopped worrying and loved Makefiles

#4
post #2

Even the slightest attempt at guessing the host system or searching for tools present on a system will quickly convert this into a blog article earnestly begging for deep societal changes and analyses the inevitable marching of time.

Hahaha. Yeap. And project dependency analysis and library feature detection quickly demand the GNU variant, autotools (gasp!), clunky scripts, or something else. Use make for simple things and simple things only.

Re: How I stopped worrying and loved Makefiles

#7
My 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...

Re: How I stopped worrying and loved Makefiles

#9
I use makefiles a lot as make-do but I must admit the syntax does my head in at times. If anyone has a good resource that teaches makefile progressively, I'd be interested.

The main issue I have is that it goes from dead simple to pit of what the hell is happening with various things interacting with each others.

Post reply on HN