MANPAGES := $(basename $(wildcard man/*.md)) build: ${MANPAGES} .PHONY: build %: %.md pandoc -s -t man -o $@ $<