infiles := $(wildcard *.mdwn) all: $(infiles:%.mdwn=%.html) $(infiles:%.mdwn=%.html): %.html: %.mdwn pandoc -f markdown -t html -o $@ $< clean: rm -f *.html .PHONY: all clean