MD = $(basename $(wildcard *.md)) test: $(addsuffix .tex, $(MD)) $(addsuffix .pdf, $(MD)) %.pdf: %.tex pdflatex -interaction batchmode -halt-on-error $< PD = \ -f markdown -t latex %.tex: %.md ../fripost-%.latex pandoc $(PD) --template=../fripost-$* < $< > $@ clean: rm -f *.aux *.hd *.log *.out *.pdf *.tex rm -f *~