From 2a374cb290f6c203f552c02c8258b65212280699 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Sun, 3 May 2020 20:32:08 +0200 Subject: Annual 2020. Motions. Initial on propositions, add two --- annual-meetings/motions/Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'annual-meetings/motions/Makefile') diff --git a/annual-meetings/motions/Makefile b/annual-meetings/motions/Makefile index cd0204d..5dc2426 100644 --- a/annual-meetings/motions/Makefile +++ b/annual-meetings/motions/Makefile @@ -1,10 +1,23 @@ -TEX = $(addsuffix _.tex, $(basename $(shell ls *.mdwn))) -ALL = $(TEX) +PREFIX = motions +TEX = $(addsuffix _.tex, $(basename $(wildcard *.mdwn))) +PDF = $(addprefix $(PREFIX)-, $(subst .main.tex,.pdf,$(wildcard *.main.tex))) +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 > $@ +motions-%.pdf: %.main.tex $(TEX) $(PREAMBLE) + pdflatex -jobname=$(basename $@) $< + clean: rm -f $(ALL) + +$(PREAMBLE): %_.tex: ../../preamble/%.tex + sed 's/..\/preamble\/\([a-z]*\)/\1_/g' < $< > $@ -- cgit v1.2.3 From 4870f32b37a21bfdcdd9f2163457fded8087ae93 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Mon, 25 May 2020 17:02:16 +0200 Subject: Annual 2020. Makefile update --- annual-meetings/motions/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'annual-meetings/motions/Makefile') 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) -- cgit v1.2.3