aboutsummaryrefslogtreecommitdiffstats
path: root/by-laws/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2018-06-06 09:56:47 +0200
committerGustav Eek <gustav.eek@fripost.org>2018-06-06 09:56:47 +0200
commitcee303fdda54053d52a18707140a59544ea1b4cb (patch)
tree5be3289f9bf8bdba45e3bc6a06bb6fdd926e3367 /by-laws/Makefile
parent2f55af15da3d337bbd82ee7515540ed091ba67ed (diff)
parent37fea3df2309c657d59f247de1ead0658072f0a7 (diff)
Merge branch '2018-05-06-annual'
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 *~