Include other makefiles

Split a big Makefile into smaller files

include mk/*.mk

tool
make10 commands
tags
makelinux

More make commands

  • make build

    Run the "build" target from the Makefile in the current directory

  • make -n deploy

    Print the commands that would run, without running them

  • make IMAGE=myapp:v2 TAG=latest push

    Override Makefile variables when you run make

  • make -j4 test

    Run 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

all 10 make commands