From 408688c700604300ed876cea7802ffedf0e2674b Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Sun, 10 May 2020 11:39:28 +0200 Subject: Annual 2020. Makefile update --- annual-reports/Makefile | 5 ++++- operational-plans/Makefile | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/annual-reports/Makefile b/annual-reports/Makefile index c87a7f8..75e1146 100644 --- a/annual-reports/Makefile +++ b/annual-reports/Makefile @@ -15,7 +15,10 @@ all : $(ALL) pdflatex -jobname=$(basename $@) $< %._.tex: %.mdwn - pandoc -f markdown -t latex < $< > $@ + cat < $< |\ + sed -f ../preamble/acronyms.sed -f ../preamble/attendants.sed |\ + pandoc -f markdown -t latex \ + > $@ annual-report-2019.pdf: annual-report-2019-master.tex annual-report-2019.tex pdflatex -jobname=$(basename $@) annual-report-2019-master.tex 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/') ;\ -- cgit v1.2.3