aboutsummaryrefslogtreecommitdiffstats
path: root/pandoc/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pandoc/tests/Makefile')
-rw-r--r--pandoc/tests/Makefile16
1 files changed, 16 insertions, 0 deletions
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 *~