💾 Archived View for warpengineer.space › entries › make_notes.gemini captured on 2022-04-29 at 12:44:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

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