blob: 26ceb679001b0602c69fb92cbcc6bd5e43edd683 (
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
|
ALL= \
by-laws-2021 \
by-laws-2020 \
by-laws-2019 \
by-laws-2013 \
by-laws-2012 \
by-laws-2010 \
operational-policy-2023 \
operational-policy-2018 \
data-protection-policy-2018 \
common-makefile = ../resources/Makefile-common
help:
@make -s -f $(common-makefile) help
all: $(ALL)
$(ALL): %: %.pdf
data-protection-%: dataskydds%
cp $< $@
%.pdf: %.main.tex %.tex ../preamble/preamble.tex
latex_count=5 ;\
latex_log=$$(echo $< | sed 's/.tex/.log/') ;\
pdflatex $< ;\
while egrep -s 'Rerun (LaTeX|to get cross-references right)' $$latex_log && [ $$latex_count -gt 0 ] ;\
do echo "Rerunning latex...." ; pdflatex $< ;\
latex_count=`expr $$latex_count - 1`;\
done ;\
mv $$(echo $< | sed 's/.tex/.pdf/') $@
%.pdf: %.odt
libreoffice --headless "-env:UserInstallation=file:///tmp/lo-$$" --convert-to pdf $<
PD = \
-f markdown -t latex \
--template=fripost-by-laws
%.pdf: %.yml %.md
pandoc $(PD) --metadata-file=$*.yml -o $@ $*.md
send:
make -f $(common-makefile) send SEND_FILES="$(ALL)"
clean:
rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~
|