Use a Makefile from another path

Use a Makefile from another directory or with another name

make -f infra/Makefile plan

tool
make10 commands
tags
makelinux

More make commands

  • .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

  • include mk/*.mk

    Split a big Makefile into smaller files

  • 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

all 10 make commands