1 2 3 4 5 6 7
PAPER := $(basename $(wildcard *.mdwn)) all: \ $(addsuffix .pdf, $(PAPER)) \ $(addsuffix .pdf, $(PAPER)): %.pdf: %.mdwn pandoc -f markdown -t latex -o $@ $<