type
Post
status
Published
date
Jul 31, 2025
slug
summary
The first step to understand makefile
tags
CI/CD
CI/CD
Makefile
category
Tech notes
icon
password
 
🔔
Prelude: I often noticed Makefile files in the root directory when browsing open-source projects on GitHub. For a long time, I thought it was some kind of sophisticated "magic tool". So during my spare time at my internship, I decided to learn some basic syntax... only to discover that it's actually like a "recipe" for compilation - to get a target file (the dish), you need some dependencies (ingredients) and commands (cooking instructions). Anyway, at least now I can understand it (mostly).

Make

Basic Rules

Common CLI Parameters

Special Syntax

Pattern Rules

Functions

Custom Functions with call

Special Variables

Sub-Makefiles

Define Directive

Conditionals

Implicit Rules

Include Directive

Special Targets

Tips and Tricks


 
Golang in shortJVM in short
Loading...