aboutsummaryrefslogtreecommitdiffstats
path: root/operational-plans/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@proceranetworks.com>2013-03-26 07:16:16 +0100
committerGustav Eek <gustav.eek@proceranetworks.com>2013-04-20 09:15:24 +0200
commitf097175bf674bde93302ca17b2d3dd62c5c5bcf9 (patch)
treef326014d49a565ecb8debd7836e9c5774af62b5a /operational-plans/Makefile
parente33f8fcc0885b39bca4f1afe65813e497164e9f3 (diff)
Operational plan added for year 2013
Diffstat (limited to 'operational-plans/Makefile')
-rw-r--r--operational-plans/Makefile24
1 files changed, 16 insertions, 8 deletions
diff --git a/operational-plans/Makefile b/operational-plans/Makefile
index 6e7a689..8c03650 100644
--- a/operational-plans/Makefile
+++ b/operational-plans/Makefile
@@ -5,16 +5,24 @@
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'
-operationalplan1 = operational-plan-2012
+all: \
+operational-plan-2013.pdf \
+operational-plan-2012.pdf
-all: $(operationalplan1).pdf
+%.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/') $@
+
+send:
+ rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf fripost@fripost.org:fripost.org/minutes/
-$(operationalplan1).pdf: $(operationalplan1).tex $(operationalplan1).main.tex ../preamble/preamble.tex
- pdflatex $(operationalplan1).main.tex
- latex_count=5 ; \
- while egrep -s 'Rerun (LaTeX|to get cross-references right)' $(operationalplan1).main.log && [ $$latex_count -gt 0 ] ;\
- do echo "Rerunning latex...." ; pdflatex $(operationalplan1).tex; latex_count=`expr $$latex_count - 1`; done
- mv $(operationalplan1).main.pdf $@
clean:
rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~