# Recursive Make and -j: The Jobserver Trap

Original title: Recursive \`make\` and \`-j\`

> Hacker News story 49912094 · language: en · submitted 2026-09-30
> Web version: https://zeli.app/story/49912094
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 32 · by [ibobev](<https://news.ycombinator.com/user?id=ibobev>) · 💬 13
[original](<https://quuxplusone.github.io/blog/2026/09/30/recursive-make-j/>) · [HN discussion](<https://news.ycombinator.com/item?id=49912094>)

## Summary

Recursive Makefiles often break parallel builds because the -j jobserver isn't forwarded to sub-makes. Testing GNU Make 3.81 through 4.3 reveals inconsistent warnings and behavior: without + or $(MAKE), parallelism silently drops to 1; with them, it works but can still trigger 'resetting jobserver mode' warnings when -j flags conflict. No version yet offers the ideal: inherit the parent's jobserver unless explicitly overridden.

## Key quote

> What we really want is a row that would look like `fantasy` below. But at the moment, it seems we have to choose our preferred tradeoff from one of the quoted rows, instead.

## HN discussion (13 comments)

### [stabbles](<https://news.ycombinator.com/item?id=49914925>)

> 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 :).

### [fragmede](<https://news.ycombinator.com/item?id=49914189>)

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

---

## Cite

- Page: https://zeli.app/story/49912094
- Date: 2026-09-30
- Source: quuxplusone.github.io (https://quuxplusone.github.io/blog/2026/09/30/recursive-make-j/)
- Hacker News: https://news.ycombinator.com/item?id=49912094

## Other languages

- zh: https://zeli.app/zh/story/49912094 · markdown: https://zeli.app/zh/story/49912094.md
- ja: https://zeli.app/ja/story/49912094 · markdown: https://zeli.app/ja/story/49912094.md
- ko: https://zeli.app/ko/story/49912094 · markdown: https://zeli.app/ko/story/49912094.md
- de: https://zeli.app/de/story/49912094 · markdown: https://zeli.app/de/story/49912094.md
- es: https://zeli.app/es/story/49912094 · markdown: https://zeli.app/es/story/49912094.md
- ru: https://zeli.app/ru/story/49912094 · markdown: https://zeli.app/ru/story/49912094.md
