Declare phony targets
Stop 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 inside a recipe
-
include mk/*.mkSplit a big Makefile into smaller files
-
make buildRun the "build" target from the Makefile in the current directory
-
make -n deployPrint the commands that would run, without running them
-
make IMAGE=myapp:v2 TAG=latest pushOverride Makefile variables when you run make