Makefile Generator
Choose your project language and targets to generate a ready-to-use Makefile with correct tab indentation. Runs entirely in your browser.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Makefile
.PHONY: build test clean
build:
go build -o bin/app ./...
test:
go test ./...
clean:
rm -rf bin/ Example shown — adjust the language and targets for your own project.
How it works
- Choose your project's language.
- List the targets you want — build, test, clean, and so on.
- Copy the generated Makefile into your project.
Generation maps each target to the standard build command for the
chosen language — go build, npm run,
python -m — and assembles a .PHONY-declared
Makefile with proper tab-indented recipe lines.
FAQ
Is my project data uploaded anywhere?
No. The Makefile is generated entirely in your browser — nothing is sent to a server.
What languages are supported?
Go, Node.js, Python, and C/C++, each with common build, test, and clean targets tailored to that language's tooling.
Can I customize the target names?
Yes — enter your own comma-separated list of targets and the generator builds a rule for each one.
Does the output use tabs, as Make requires?
Yes — Makefile recipe lines require a literal tab character, and the generated output uses real tabs, not spaces.
How we compare
| Feature | Online Tool Store | Writing it by hand | Copying a template repo |
|---|---|---|---|
| No tab/space mistakes | ✓ | Easy to break with a stray space | ✓ |
| Free, no setup | ✓ | ✓ | Inherits someone else's targets |
Writing a Makefile by hand risks a broken tab. Makefile Generator produces clean, correctly indented rules for the targets you choose.