Phony targets declaration
Prevent make from confusing targets with files of the same name
.PHONY: build test deploy clean
- tool
- make10 commands
More make commands
-
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
-
make buildExecute the 'build' target in the current Makefile
-
make -n deployPrint what would be executed without running it
-
make IMAGE=myapp:v2 TAG=latest pushOverride Makefile variables at call time