aboutsummaryrefslogtreecommitdiffstats
path: root/2013
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@proceranetworks.com>2013-03-28 12:20:11 +0100
committerGustav Eek <gustav.eek@proceranetworks.com>2013-04-20 09:17:30 +0200
commit955ac0d95e92ad6b4ca7eb9a3abfc11c7a3523c2 (patch)
treefaae770437e6bdbb0db0231b4ab01425c4a900a6 /2013
parentf097175bf674bde93302ca17b2d3dd62c5c5bcf9 (diff)
Annual report added
Diffstat (limited to '2013')
-rw-r--r--2013/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/2013/Makefile b/2013/Makefile
index 3df85b0..6126eda 100644
--- a/2013/Makefile
+++ b/2013/Makefile
@@ -1,8 +1,20 @@
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'
-minutes1 = 2013-02-12-board
-all: $(minutes1).pdf
+
+all: \
+2013-03-23-annual.pdf \
+2013-02-12-board.pdf
+
+%.pdf: %.tex ../preamble/preamble.tex
+ latex_count=5 ;\
+ latex_log=$$(echo $@ | sed 's/.pdf/.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;
%.pdf: %.tex ../preamble/preamble.tex
latex_count=5 ;\