1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
MD := $(wildcard *.mdwn) ALL = $(addsuffix .pdf, $(basename $(MD))) .PHONY: all all: $(ALL) %.pdf: %.mdwn cat $< |\ pandoc -f markdown -t latex \ -o $@ \ -V header-includes="\usepackage{fripost}" clean: rm -f $(ALL)