makefile - evanmoran/quick GitHub Wiki

The file make uses to define its build rules.

Variables and Rules:

# Variables use '='. By convention these are ALL_CAPS
MY_VARIABLE=string of characters 

# Rules use ':'. Notice one tab indention (spaces don't work)
<targets>: <dependencies>          
	<command1>
	<command2>
	...

Automatic variables:

$@        Target full path
$(@D)     Target directory
$(@F)     Target filename
$<        First dependency
$?        List of only those dependencies that have changed
$^        List of all dependencies with duplicates removed
$+        List of all dependencies with duplicates kept
⚠️ **GitHub.com Fallback** ⚠️