3 ms·
Oh, boy. Take a chill pill man! Is no one allowed to do anything for fun any more? It took me about 15 minutes to come up with the solution. I wrote it up for
by jgrahamc 12y ago
Oh, boy. Take a chill pill man! Is no one allowed to do anything for fun any more?
It took me about 15 minutes to come up with the solution. I wrote it up for fun because it illustrates some of the functionality of GNU make that people might not be aware of (order-only prerequisites, $(eval)) and using $(call) in a recursive fashion.
I actually spent more time on the blog post.
- crististm 12y agoI think it's because people resort to construct a parallel build machine with half-baked dependency resolution on top of make. Asking for -j value inside the Makefile was a tell-tale sign of this sort.
- jordigh 12y agoA parallel test, actually: https://news.ycombinator.com/item?id=9283981 https://news.ycombinator.com/item?id=9283981