Pass variables on the command line
Override Makefile variables when you run make
make IMAGE=myapp:v2 TAG=latest push
- tool
- make10 commands
More make commands
-
make -j4 testRun up to 4 jobs at the same time
-
grep -E '^[a-zA-Z_-]+:.*?##' Makefile | awk -F':.*##' '{printf "%-20s %s\n", $1, $2}'Print targets that have ## comments, a common trick for self-documenting Makefiles
-
make -B buildRebuild all targets and ignore timestamps (-B or --always-make)
-
make -f infra/Makefile planUse a Makefile from another directory or with another name
-
.PHONY: build test deploy cleanStop make from confusing targets with files of the same name