aboutsummaryrefslogtreecommitdiffstats
path: root/annual-meetings/motions/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2020-05-03 20:32:08 +0200
committerGustav Eek <gustav.eek@fripost.org>2020-05-03 20:32:08 +0200
commit2a374cb290f6c203f552c02c8258b65212280699 (patch)
tree90e2d04ed0b9e7e6014824526fd94cce5d9f98c2 /annual-meetings/motions/Makefile
parenta06ae58dd2b4a2fcda7ea0152cf959ab3c60ed16 (diff)
Annual 2020. Motions. Initial on propositions, add two
Diffstat (limited to 'annual-meetings/motions/Makefile')
-rw-r--r--annual-meetings/motions/Makefile17
1 files changed, 15 insertions, 2 deletions
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' < $< > $@