sources = $(wildcard *.md) htmls = $(sources:.md=.html) .SUFFIXES: .md .html .md.html: pandoc --standalone --toc -o $@ $< all: $(htmls)