Makefile
🔧 ConfigText-based

Makefile File — Make Build Script

text/x-makefile

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

MAKEFILE

Drop a Makefile file here or click to choose

Or drop any file to identify its extension

Expected MIME type:text/x-makefile

Quick Facts

ExtensionMakefile
Full NameMake Build Script
MIME Typetext/x-makefile
CategoryConfig
TypeText-based (human-readable)
Typical Size500 B – 50 KB
First Appeared1976

What Is a Makefile File?

Makefiles define build rules and dependencies for the make build automation tool, originally created by Stuart Feldman at Bell Labs in 1976. A Makefile consists of rules, each with a target, optional prerequisites (dependencies), and a recipe (commands to execute). Make determines which targets need rebuilding based on file modification timestamps, executing only the minimum necessary commands. Makefiles use TAB-indented recipe lines (a notorious requirement), variables for configurable paths and flags, pattern rules for generic build instructions, and automatic variables ($@, $<, $^) for concise rule definitions. Make was designed for compiling C programs but has become a universal task runner — projects in any language use Makefiles for build commands, test execution, deployment scripts, and development workflows. GNU Make is the most widely used implementation, with extensions including conditional logic, functions for text transformation, and include directives for modular organization. Despite the availability of modern build tools, Makefiles remain the standard for C/C++ projects, Linux kernel builds, and as a convenient task runner interface for projects using any build system.

How to Open Makefile Files

VS Code
vim
Emacs
any text editor
make (execution)

Related File Extensions

More Config File Extensions

Other config formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.