SRC=$(wildcard *.ma) all: $(SRC:%.ma=%.html) clean: rm *.html *.png *.mdwn %.html: %.ma convert.awk preamble.xml postamble.xml cat preamble.xml > $@ awk -f convert.awk < $< > $*.mdwn markdown < $*.mdwn >> $@ cat postamble.xml >> $@