aboutsummaryrefslogtreecommitdiffstats
path: root/by-laws/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'by-laws/Makefile')
-rw-r--r--by-laws/Makefile31
1 files changed, 21 insertions, 10 deletions
diff --git a/by-laws/Makefile b/by-laws/Makefile
index e17d0dd..bae397f 100644
--- a/by-laws/Makefile
+++ b/by-laws/Makefile
@@ -1,14 +1,22 @@
-# Makefile for minutes with usual treatments, that is noting extra then just compilation.
-#
-# Gustav Eek 2011
-noarg:
- echo -e '\nThis script do not run without arguments. Run for example:\n\n make 2011-02-13-board-notes.pdf\n make all\n'
+ALL= \
+by-laws-2013 \
+by-laws-2012 \
+by-laws-2010 \
+operational-policy-2018 \
+data-protection-policy-2018 \
-all: \
-by-laws-2013.pdf \
-by-laws-2012.pdf \
-by-laws-2010.pdf
+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 ;\
@@ -20,8 +28,11 @@ by-laws-2010.pdf
done ;\
mv $$(echo $< | sed 's/.tex/.pdf/') $@
+%.pdf: %.odt
+ libreoffice --headless "-env:UserInstallation=file:///tmp/lo-$$" --convert-to pdf $<
+
send:
- rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf fripost@fripost.org:fripost.org/minutes/
+ make -f $(common-makefile) send SEND_FILES="$(ALL)"
clean:
rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~