diff options
Diffstat (limited to 'annual-meetings/motions/Makefile')
-rw-r--r-- | annual-meetings/motions/Makefile | 14 |
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) |