diff options
Diffstat (limited to 'operational-plans/Makefile')
| -rw-r--r-- | operational-plans/Makefile | 24 | 
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 *~ | 
