List all targets (with help pattern)
Convention: annotate targets with ## comments for self-documenting Makefiles
grep -E '^[a-zA-Z_-]+:.*?##' Makefile | awk -F':.*##' '{printf "%-20s %s\n", $1, $2}'
- tool
- make10 commands
More make commands
-
make -B buildUnconditionally remake all targets (-B / --always-make)
-
make -f infra/Makefile planUse a Makefile in a different directory or with a different name
-
.PHONY: build test deploy cleanPrevent make from confusing targets with files of the same name
-
build: docker build -t $(IMAGE) . && echo 'Built $@'$@ expands to the current target name in a recipe
-
include mk/*.mkSplit a large Makefile into modular includes