Recursive `make` and `-j`

ibobev 22 points 8 comments September 30, 2026
quuxplusone.github.io · View on Hacker News

Discussion Highlights (3 comments)

fragmede

Don't do it! https://accu.org/journals/overload/14/71/miller_2004/ Recursive Make Considered Harmful By Peter Miller

stabbles

The `-j` is meant for the top-level invocation only, and the $(MAKE) pattern is standard. The `+` or $(MAKE) "tricks" to ensure the jobserver is inherited in submake and any other subprocess are no longer needed in gmake 4.4 (from 2022) because it defaults to a FIFO instead of pipes. The author should just upgrade gmake :).

kazinator

How it works is that the top-level invocation runs the job server, and the children feed requests to it. The top-level controls the parallelism.

Semantic search powered by Rivestack pgvector
8,145 stories · 75,997 chunks indexed