GNU Make 4 cheatsheet
GNU Make 4: Running make
8 common GNU Make 4 tasks.
Set a variable on the command line
Command-line variables override those in the Makefile.
make CC=clang DEBUG=1
Use another Makefile
Read a different file, or run in another directory.
make -f build.mk
make -C subdir
Print why targets are rebuilt
Show make's decisions, useful when a target rebuilds unexpectedly.
make --debug=b