# Make (Build Tool)

> An old, simple build tool. It reads a Makefile and redoes only what changed.

**Field:** Software Development  
**Category:** Editors & Tools  
**Also known as:** Makefile, GNU Make, make command

## Think of it like

It is like a list of chores where some must wait for others. It does only the ones still needed.

## Definition

Make is an old and simple build tool that reads a file called a Makefile. The file lists targets, the files each one needs, and the commands that make it. Make checks which files changed, and rebuilds only what depends on them. It began with C programs, but people use it to run any job. Each command line in a Makefile must start with a tab, not spaces.

## Example

Jack keeps a Makefile in his project. He types make test, and Make builds what changed, then runs the tests.

## Example code

```makefile
app: main.c
	cc -o app main.c

test: app
	./app --self-test
```

Two targets. The test target needs app first, so Make builds app, then tests it.

## Why it matters

It is on most Unix systems. Many teams use a Makefile as the one place to start each job.

## Common mistake

Starting a command line with spaces. Make wants a tab there, and fails with a missing separator error.

## Three principles

- **Targets.** Each one names a file or a job.
- **Only what changed.** It compares file times.
- **Tabs matter.** Command lines start with a tab.

## Related terms

- [Build Tool](https://learn.benibix.com/term/development/build-tool)
- [C](https://learn.benibix.com/term/development/c-language)
- [Compiler](https://learn.benibix.com/term/development/compiler)
- [Task Runner](https://learn.benibix.com/term/development/task-runner)
- [Shell](https://learn.benibix.com/term/infrastructure/shell)

## Taught in

- [Make, Maven and Gradle](https://learn.benibix.com/learn/development-tools/make-maven-and-gradle): Coding Tools, 12/13

![Source files on the left go into a build tool in the middle, which reads a recipe file: a Makefile, a pom.xml or a build.gradle.kts. Inside the tool, three steps run in order: compile, test, package. On the right comes the result, a program or a jar file. Below, a task runner row shows npm run build running the real command behind it, vite build.](https://learn.benibix.com/diagrams/dev5-build-tool.svg)

---

Source: https://learn.benibix.com/term/development/make-build-tool
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
