SLIDES = agenda PAPERS = annual-report all: \ $(addsuffix .pdf, $(SLIDES)) \ $(addsuffix .pdf, $(PAPERS)) $(addsuffix .pdf, $(SLIDES)): %.pdf: %.md pandoc -s -f markdown -t beamer -o $@ < $< $(addsuffix .pdf, $(PAPERS)): %.pdf: %.md pandoc -s -f markdown -t latex -o $@ < $< $(addsuffix .tex, $(PAPERS)): %.tex: %.md pandoc -s -f markdown -t latex -o $@ < $<