aboutsummaryrefslogtreecommitdiffstats
path: root/2013/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '2013/Makefile')
-rw-r--r--2013/Makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/2013/Makefile b/2013/Makefile
index 6ab81b8..883e9bb 100644
--- a/2013/Makefile
+++ b/2013/Makefile
@@ -1,11 +1,17 @@
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'
-
+# Normal minutes
all: \
+2013-03-26-board.pdf \
2013-03-23-annual.pdf \
+2013-03-12-board-notes.pdf \
2013-02-12-board.pdf
+# Minutes with information from external sources
+completes: 2013-03-26-board-complete.pdf
+
+# The most general latex compilation command
%.pdf: %.tex ../preamble/preamble.tex
latex_count=5 ;\
latex_log=$$(echo $@ | sed 's/.pdf/.log/') ;\
@@ -15,6 +21,14 @@ all: \
latex_count=`expr $$latex_count - 1`;\
done;
+# Special treatment of minutes complemented with secrets
+%-complete.tex: %.tex %.sed.gpg
+ source=$$(echo $< | sed 's/.tex//') ; \
+ gpg --decrypt < $${source}.sed.gpg > $${source}.sed_ ; \
+ sed -f $${source}.sed_ < $< > $@ ;\
+ rm -f $${source}.sed_
+
+# Treat annual meeting minutes specially
2013-03-23-annual.pdf: 2013-03-23-annual.tex \
../preamble/preamble.tex \
../annual-reports/annual-report-2013.tex \
@@ -31,9 +45,10 @@ all: \
# Sends to fripost.org for publication
send:
- rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf fripost@fripost.org:fripost.org/minutes/
+ rsync -ruvp --chmod=Dugo+rx,Fugo+r *-board.pdf *-notes.pdf *-annual.pdf fripost@fripost.org:fripost.org/minutes/
# Clean up
clean:
- rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~; rm -f test test.d/test; rmdir test.d
+ rm -f *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~;\
+ rm -f *complete.tex