commands
make — Build targets and dependencies
GNU Make evaluates dependency rules and recipes. A reviewed simple recipe may be previewed with -n; recursive and specially marked recipes or expansion-time shell calls can still execute. Never treat dry-run as a sandbox. Use a fresh private workspace; No production workload is required.
Formal Syntax & Structure
linux syntaxlinux
make [OPTIONS] [TARGET...]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -n | option | Print recipes normally without executing them |
| -f | option | Select a reviewed makefile |
| TARGET | operand | Named target |
Return Value
exit status and output
GNU make returns 0 when requested targets are up to date or processed successfully. With -q, 1 means a target needs updating; 2 means an error. With -n, stdout previews recipes, subject to the dry-run exceptions described above.
Working Example
Example Snippetlinux
make -n -f Makefile plan