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