Automatic variable $@
$@ expands to the current target name in a recipe
build:
docker build -t $(IMAGE) . && echo 'Built $@'
- tool
- make10 commands
More make commands
-
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
-
make -j4 testRun up to 4 recipe lines in parallel