Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
make
/
Include sub-makefiles
Include sub-makefiles
make
Split a large Makefile into modular includes
include mk/*.mk
⎘ copy
#make
#linux
more make
all 10 commands →
Run a specific target
make build
Dry run (print commands only)
make -n deploy
Pass variables on command line
make IMAGE=myapp:v2 TAG=latest push
Run parallel jobs
make -j4 test
List all targets (with help pattern)
grep -E '^[a-zA-Z_-]+:.*?##' Makefile | awk -F':.*##' '{printf "%-20s %s\n", $1, $2}'