aboutsummaryrefslogtreecommitdiffstats
path: root/annual-reports/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2020-11-23 15:43:18 +0100
committerGustav Eek <gustav.eek@fripost.org>2020-11-23 15:43:18 +0100
commit423f3e06bbfbd44181a84208f3e000c69742c310 (patch)
tree0aa185c24d5bb29174b2341cc9ec8512ba4c93ec /annual-reports/Makefile
parente6661691aab2755b45d0ab56d138741c226e04ac (diff)
parent04996061842231770f05d5ad9690bd5e556eab85 (diff)
Merge branch '2020-05-10-annual' into master
Diffstat (limited to 'annual-reports/Makefile')
-rw-r--r--annual-reports/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/annual-reports/Makefile b/annual-reports/Makefile
index f05651b..d7225f6 100644
--- a/annual-reports/Makefile
+++ b/annual-reports/Makefile
@@ -1,4 +1,7 @@
ALL = \
+ annual-report-2020-of-2019.pdf \
+ economical-report-2020-of-2019.pdf \
+ auditors-report-2020-of-2019.pdf \
annual-report-2019.pdf \
economical-report-2019.pdf \
auditors-report-2019.pdf \
@@ -8,6 +11,20 @@ ALL = \
all : $(ALL)
+%.pdf: %.main.tex %._.tex
+ pdflatex -jobname=$(basename $@) $<
+ ! grep -q "Rerun to get cross-references right" $(basename $@).log || \
+ pdflatex -jobname=$(basename $@) $<
+
+%._.tex: %.mdwn
+ cat < $< |\
+ sed -f ../preamble/acronyms.sed -f ../preamble/attendants.sed |\
+ pandoc -f markdown -t latex \
+ > $@
+
+economical-report-2020-of-2019.pdf: Balans-och-resultat-2019.pdf
+ ln -s $< $@
+
annual-report-2019.pdf: annual-report-2019-master.tex annual-report-2019.tex
pdflatex -jobname=$(basename $@) annual-report-2019-master.tex
@@ -17,6 +34,9 @@ economical-report-2019.pdf: Balans-och-resultat-2018-fripost.pdf
auditors-report-2019.pdf: revision2018.pdf
cp $< $@
+auditors-report-2020-of-2019.pdf: revision2019.pdf
+ ln -s $< $@
+
annual-report-2018.pdf: annual-report-2018-master.tex annual-report-2018.tex
pdflatex -jobname=$(basename $@) annual-report-2018-master.tex
@@ -28,3 +48,10 @@ auditors-report-2018.pdf: revision2017.pdf
clean:
rm -fr $(ALL)
+
+SEND_FILES = \
+ $(wildcard *-report-*-of-*.pdf)
+
+send:
+ rsync -ruvp --chmod=Dugo+rx,Fugo+r $(SEND_FILES) www.fripost.org:/var/www/fripost.org/minutes
+ @echo; echo Now avialable as; for f in $(SEND_FILES); do echo " - https://fripost.org/minutes/$$f"; done