Run jobs in parallel

Run up to 4 jobs at the same time

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}'

    Print targets that have ## comments, a common trick for self-documenting Makefiles

  • make -B build

    Rebuild all targets and ignore timestamps (-B or --always-make)

  • make -f infra/Makefile plan

    Use a Makefile from another directory or with another name

  • .PHONY: build test deploy clean

    Stop make from confusing targets with files of the same name

  • build: docker build -t $(IMAGE) . && echo 'Built $@'

    $@ expands to the current target name inside a recipe

all 10 make commands