Re:GNU make insanity: finding the value of the -j parameter
by crististm on Sunday March 29, 2015 @06:55AM
(#9284445)
I 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.
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.