aboutsummaryrefslogtreecommitdiffstats
path: root/annual-reports/Makefile
blob: 4bb0a9b06fe8d957cf9024acb36e1cc716c05663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ALL = \
  annual-report-2021-of-2020.pdf \
  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 \
  annual-report-2018.pdf \
  economical-report-2018.pdf \
  auditors-report-2018.pdf \

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

economical-report-2019.pdf: Balans-och-resultat-2018-fripost.pdf
	cp $< $@

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

economical-report-2018.pdf: Balans-och-resultat-2017.pdf
	cp $< $@

auditors-report-2018.pdf: revision2017.pdf
	cp $< $@

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