Makefile Debugging, Parallelism & CI/Respect jobserver in recursive make

Propagate parallelism automatically using `$(MAKE)`.

Section: Parallel builds and CI patterns

Respect jobserver in recursive make

makefile
makefile
subdirs:
	$(MAKE) -C api
	$(MAKE) -C web
Explanation

Use `$(MAKE)` rather than plain `make` so flags like `-j` propagate correctly.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Parallel builds and CI patterns
Synchronized parallel output
Keep log lines grouped by target when running with jobs.
OpenIn sheetbashsame section
CI aggregate target
Create a single target for consistent pipeline execution.
OpenIn sheetmakefilesame section
Local override include for CI-safe defaults
Load machine-specific settings without hardcoding them in shared files.
OpenIn sheetmakefilesame section
Reproducible dependency install target
Use lockfile-based install inside a phony or stamp target.
OpenIn sheetmakefilesame section
Trace target execution
Show when each target is considered and updated.
Set shell and flags
Use bash with strict flags for recipes.
OpenIn sheetmakefile