aboutsummaryrefslogtreecommitdiffstats
path: root/operational-plans/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 /operational-plans/Makefile
parent2f55af15da3d337bbd82ee7515540ed091ba67ed (diff)
parent37fea3df2309c657d59f247de1ead0658072f0a7 (diff)
Merge branch '2018-05-06-annual'
Diffstat (limited to 'operational-plans/Makefile')
-rw-r--r--operational-plans/Makefile30
1 files changed, 20 insertions, 10 deletions
diff --git a/operational-plans/Makefile b/operational-plans/Makefile
index dcaaaa0..4e008ae 100644
--- a/operational-plans/Makefile
+++ b/operational-plans/Makefile
@@ -1,13 +1,16 @@
-# Makefile for minutes with usual treatments, that is noting extra then just compilation.
-#
-# Gustav Eek 2011
+ALL = \
+ operational-plan-2018 \
+ operational-plan-2015 \
+ operational-plan-2013 \
+ operational-plan-2012 \
-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'
+common-makefile = ../resources/Makefile-common
-all: \
-operational-plan-2013.pdf \
-operational-plan-2012.pdf
+all: $(ALL)
+
+$(ALL): %: %.pdf
+
+# General cases
%.pdf: %.main.tex %.tex ../preamble/preamble.tex
latex_count=5 ;\
@@ -19,9 +22,16 @@ operational-plan-2012.pdf
done
mv $$(echo $< | sed 's/.tex/.pdf/') $@
-send:
- rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf fripost@fripost.org:fripost.org/minutes/
+# Special cases
+operational-plan-2018.main.tex: operational-policy-2018_.tex
+ touch $@
+operational-policy-2018_.tex: ../by-laws/operational-policy-2018.tex
+ sed -e 's/\\\(.*\)section *{/\\sub\1section{/g' < $< > $@
+
+
+send:
+ make -f $(common-makefile) send SEND_FILES="$(ALL)"
clean:
rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~