Makefile

Makefile Code Screenshot Generator

Turn Makefile snippets into images worth sharing, without leaving your Mac.

Makefiles are all whitespace semantics, which is exactly the thing that breaks when someone pastes them into a chat window.

Codeshot detects Makefile from the code you paste, so there is no language picker to get wrong. Here is the same snippet in three of the 30 themes it ships with, rendered with the app's own stylesheets.

THEME ?= xcode
SCALE ?= 2

.PHONY: shots
shots: $(patsubst src/%.swift,out/%.png,$(wildcard src/*.swift))

out/%.png: src/%.swift
	@mkdir -p out
	codeshot export $< --theme $(THEME) --scale $(SCALE) --out $@
Edge · dark
THEME ?= xcode
SCALE ?= 2

.PHONY: shots
shots: $(patsubst src/%.swift,out/%.png,$(wildcard src/*.swift))

out/%.png: src/%.swift
	@mkdir -p out
	codeshot export $< --theme $(THEME) --scale $(SCALE) --out $@
GitHub · dark
THEME ?= xcode
SCALE ?= 2

.PHONY: shots
shots: $(patsubst src/%.swift,out/%.png,$(wildcard src/*.swift))

out/%.png: src/%.swift
	@mkdir -p out
	codeshot export $< --theme $(THEME) --scale $(SCALE) --out $@
Tokyo Night · dark

Choosing a theme for Makefile

Recipes must be indented with tabs, and an image is the only way to share one without a well-meaning editor converting them to spaces.

Getting the size right

Let the image follow your content, or lock it to a ratio — 1:1, 4:3, 3:2, 16:9, 9:16, 2:3, or 3:4 — then export at 1×, 2×, or 3× so it stays sharp on a retina display. Copy it straight to the clipboard with C, or save with S.

See all 30 themes side by side, or read the full workflow.

Built for Makefile, and 59 other languages

Everything runs on your Mac. Your code never leaves it.

Download for macOS