aboutsummaryrefslogtreecommitdiffstats
path: root/pandoc
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2023-11-04 20:52:47 +0100
committerGustav Eek <gustav.eek@fripost.org>2023-11-04 20:59:34 +0100
commit96a36b34850fbcef505083ac0df9bcd8baf3a18c (patch)
tree21a06f3bf57e27587e807709fd5aef2dcfd8ec65 /pandoc
parent5f0273be36d07762220fdcc22d8be6948e203126 (diff)
Setup. Add run scripts for the tests
Diffstat (limited to 'pandoc')
-rw-r--r--pandoc/Makefile1
-rw-r--r--pandoc/tests/Makefile16
2 files changed, 17 insertions, 0 deletions
diff --git a/pandoc/Makefile b/pandoc/Makefile
index 914849f..73859cf 100644
--- a/pandoc/Makefile
+++ b/pandoc/Makefile
@@ -30,3 +30,4 @@ test:
clean:
make -C tests $@
+ rm -f *~
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 *~