GNU Make
$ make Foundation Low RiskThe foundational dependency-driven build tool found in C/C++, embedded, and polyglot projects worldwide. Agents rely on make -n (--dry-run) to inspect target recipes safely before executing builds or tests.
brew install make Standard local build orchestrator; must run directly in the workspace shell.
Agent-Readiness Checklist
Local Probe EvidenceFCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive execution with -n (--dry-run) and -s, but lacks --json output and clean target listing.
make -nreliably prints recipes without running them- No
--jsonoutput or built-in--listsummary
Zero network/auth surface and -n dry-run inspection, though $(shell ...) expressions still evaluate during parsing.
make -npreviews commands safely (note$(shell ...)nuances)
Pre-installed on nearly every Linux/macOS dev box (macOS ships Make 3.81; Homebrew provides GNU Make 4.x as gmake).
- Ubiquitous OS availability; minor macOS 3.81 vs GNU 4.x version skew
Simple timestamp-based incremental builds and universal entrypoint across diverse repos.
- Universal
make test/make buildconvention
Long-lived GNU Project utility under GPL-3.0.
- Maintained by the GNU Project
Exhaustive official GNU Make manual, though dense for quick flag lookups.
- Complete manual at gnu.org/software/make/manual
Security, Auth & Guardrails
No credentials stored; reads local Makefile / GNUmakefile targets.
GPL-3.0 free and open-source software.
# GNU Make (make) Agent Rules - Run `make -n <target>` first to inspect what commands a `Makefile` target executes. - Avoid destructive targets like `make clean` or `make distclean` unless an incremental rebuild is broken.
Agent-Ready Command Recipes
Safe Read-Only Queries
make -n build
Prints the exact expanded commands make build would run without executing them.
make -qp
Dumps parsed rules and variables (-q -p) so agents can inspect available targets safely.
Controlled Writes & Previews
make -s test
Executes the test target with -s (--silent) to reduce shell noise.
Strengths for Agents
- + Pre-installed almost everywhere with near-zero startup time.
- +
make -n(--dry-run) exposes exact recipe commands before running. - + Serves as the common task entrypoint across thousands of repositories.
Caveats & Pitfalls
- ! No
--jsonoutput and no native--listflag for discovering targets. - ! macOS default
/usr/bin/makeis pinned to GNU Make 3.81 (2006), causing subtle incompatibilities with Make 4.xMakefiles.