From 96a36b34850fbcef505083ac0df9bcd8baf3a18c Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Sat, 4 Nov 2023 20:52:47 +0100 Subject: Setup. Add run scripts for the tests --- pandoc/tests/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pandoc/tests/Makefile (limited to 'pandoc/tests/Makefile') diff --git a/pandoc/tests/Makefile b/pandoc/tests/Makefile new file mode 100644 index 0000000..a48d023 --- /dev/null +++ b/pandoc/tests/Makefile @@ -0,0 +1,16 @@ +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 *~ -- cgit v1.2.3