1 2 3 4 5 6 7
MD = $(basename $(wildcard *.md)) all: $(addsuffix .pdf, $(MD)) %.pdf: %.md cat $< | sed -f drop.sed |\ pandoc -s -f markdown -t latex -o $@