diff options
author | Gustav Eek <gustav.eek@proceranetworks.com> | 2013-04-20 09:28:25 +0200 |
---|---|---|
committer | Gustav Eek <gustav.eek@proceranetworks.com> | 2013-04-20 09:28:25 +0200 |
commit | 333ce0e77e9ed4471070b2cbc856edc29cd800ca (patch) | |
tree | c7b6fcb1da08ea68d3f47f74dcb09fc0641410d0 /operational-plans/Makefile | |
parent | cf84992f282bd9a1cbac21e525175e466328056f (diff) | |
parent | 07d3de541c5eb163bdb563f0fb4489d92d53f899 (diff) |
Merge branch 'ge-annual'
Conflicts:
2013/Makefile
Diffstat (limited to 'operational-plans/Makefile')
-rw-r--r-- | operational-plans/Makefile | 23 |
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 *~ |