aboutsummaryrefslogtreecommitdiffstats
path: root/annual-meetings/motions
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2020-05-25 17:02:16 +0200
committerGustav Eek <gustav.eek@fripost.org>2020-05-25 17:02:16 +0200
commit4870f32b37a21bfdcdd9f2163457fded8087ae93 (patch)
tree7f4ba320c98b586bee4c20c83c5cc346b420c404 /annual-meetings/motions
parentbf5d5961cc3ba2aefde334e5c7c88171f8a09f70 (diff)
Annual 2020. Makefile update
Diffstat (limited to 'annual-meetings/motions')
-rw-r--r--annual-meetings/motions/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/annual-meetings/motions/Makefile b/annual-meetings/motions/Makefile
index 5dc2426..683f2f4 100644
--- a/annual-meetings/motions/Makefile
+++ b/annual-meetings/motions/Makefile
@@ -5,16 +5,22 @@ ALL = $(TEX) $(PDF)
PREAMBLE = preamble_.tex acronyms_.tex attendants_.tex
-print:
- echo $(ALL)
-
all: $(ALL)
%_.tex: %.mdwn
- cat < $< | sed -e 's/SCB/\\scb\\/g' -e 's/^$$/\\mypar\n/' | pandoc -f markdown -t latex > $@
+ cat < $< | sed -e 's/^$$/\\mypar\n/' |\
+ sed -f ../../preamble/acronyms.sed \
+ -f ../../preamble/attendants.sed \
+ -f ../../preamble/snippets.sed |\
+ pandoc -f markdown -t latex > $@
+
+
+
motions-%.pdf: %.main.tex $(TEX) $(PREAMBLE)
pdflatex -jobname=$(basename $@) $<
+ ! grep -q "Rerun.*right" $(basename $@).log ||\
+ pdflatex -jobname=$(basename $@) $<
clean:
rm -f $(ALL)