aboutsummaryrefslogtreecommitdiffstats
path: root/operational-plans
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2020-05-10 11:39:28 +0200
committerGustav Eek <gustav.eek@fripost.org>2020-05-10 11:39:28 +0200
commit408688c700604300ed876cea7802ffedf0e2674b (patch)
tree258fd32adc5549ed27e2819d27ff42fd4f96c7dd /operational-plans
parent3ae33a4732de50fb416c4dfe57506a8cdd1f80e5 (diff)
Annual 2020. Makefile update
Diffstat (limited to 'operational-plans')
-rw-r--r--operational-plans/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/operational-plans/Makefile b/operational-plans/Makefile
index 276c347..7c71e5c 100644
--- a/operational-plans/Makefile
+++ b/operational-plans/Makefile
@@ -1,4 +1,5 @@
ALL = \
+ operational-plan-2020 \
operational-plan-2019 \
operational-plan-2018 \
operational-plan-2015 \
@@ -13,6 +14,14 @@ $(ALL): %: %.pdf
# General cases
+%.pdf: %.main.tex %._.tex
+ pdflatex -jobname=$(basename $@) $<
+ ! grep -q "Rerun to get cross-references right" $(basename $@).log || \
+ pdflatex -jobname=$(basename $@) $<
+
+%._.tex: %.mdwn
+ pandoc -f markdown -t latex < $< > $@
+
%.pdf: %.main.tex %.tex ../preamble/preamble.tex
latex_count=5 ;\
latex_log=$$(echo $< | sed 's/.tex/.log/') ;\