From f097175bf674bde93302ca17b2d3dd62c5c5bcf9 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Tue, 26 Mar 2013 07:16:16 +0100 Subject: Operational plan added for year 2013 --- operational-plans/Makefile | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'operational-plans/Makefile') 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 *~ -- cgit v1.2.3