aboutsummaryrefslogtreecommitdiffstats
path: root/operational-plans/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'operational-plans/Makefile')
-rw-r--r--operational-plans/Makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/operational-plans/Makefile b/operational-plans/Makefile
index 6e7a689..dcaaaa0 100644
--- a/operational-plans/Makefile
+++ b/operational-plans/Makefile
@@ -5,16 +5,23 @@
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 *~