My Notes on Makefiles

Stuff I use most

Output Functions

Defines

Functions

call example:
reverse = $(2) $(1)
D = $(call reverse,a,b) # D will contain 'b a'
filter example:
D = a.h a.c b.h b.c
CFiles = $(filter %.c,$(D))  # CFiles will contain 'a.c b.c' only

List Functions

Directory/Path/File Functions

Create/Append to File

More stuff