Run parallel jobs

Run up to 4 recipe lines in parallel

make -j4 test

tool
make10 commands
tags
makelinux

More make commands

  • grep -E '^[a-zA-Z_-]+:.*?##' Makefile | awk -F':.*##' '{printf "%-20s %s\n", $1, $2}'

    Convention: annotate targets with ## comments for self-documenting Makefiles

  • make -B build

    Unconditionally remake all targets (-B / --always-make)

  • make -f infra/Makefile plan

    Use a Makefile in a different directory or with a different name

  • .PHONY: build test deploy clean

    Prevent 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

all 10 make commands