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