Make
Build automation with Makefiles. Define targets, dependencies, and recipes for compiling and running tasks.
53 commands
Browse by Topic
Check Make version
Display the installed GNU Make version
Install Make (macOS)
Install Make via Xcode Command Line Tools on macOS
Install Make (Linux)
Install Make and essential build tools on Debian/Ubuntu Linux
Run default target
Execute the first target defined in the Makefile
Run default target
Execute first target in Makefile.
Run specific target
Execute named target.
Multiple targets
Run multiple targets in order.
Use specific Makefile
Use alternative Makefile.
Change directory
Run make in different directory.
Pass variable
Override variable on command line.
Parallel jobs
Run 4 jobs in parallel.
Keep going on error
Continue as much as possible after error.
Silent mode
Don't print commands as executed.
Dry run
Print commands without executing.
Print database
Print internal database and rules.
Debug mode
Print debugging information.
Print why
Show why target is being remade.
Print variable
Find variable value in database.
Trace execution
Trace shell commands.
Build all
Build all targets (convention).
Clean build
Remove build artifacts.
Install
Install to system directories.
Uninstall
Remove installed files.
Run tests
Run test suite.
Check
Verify build (often same as test).
Distribution
Create distributable archive.
Help
Show available targets (if defined).
Simple variable
Immediate assignment (expanded once).
Recursive variable
Deferred assignment (expanded each use).
Append to variable
Add to existing value.
Conditional set
Set only if not already defined.
Environment export
Export variable to shell.
Automatic $@
$@ = target name.
Automatic $<
$< = first prerequisite.
Automatic $^
$^ = all prerequisites.
Pattern stem
$* = matched pattern stem.
Basic rule
Standard Makefile rule structure.
Phony target
Declare non-file targets.
Pattern rule
Rule for multiple targets with pattern.
Include file
Include another Makefile.
Conditional
Conditional variable setting.
Define function
Define multi-line variable/function.
Call function
Invoke defined function.
Shell function
Capture shell command output.
Wildcard function
Expand wildcard pattern.
Substitution
Replace .c with .o extension.
Self-documenting help
Generate help from comments (## comment).
Docker target
Build Docker image.
Default goal
Set default target to help.
Version from git
Get version from git tags.
Colored output
Print colored status messages.
Check dependencies
Verify required tools installed.
Environment file
Load environment from .env file.
Discussion
Loading comments...