aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@proceranetworks.com>2013-03-28 12:20:57 +0100
committerGustav Eek <gustav.eek@proceranetworks.com>2013-04-20 09:18:01 +0200
commit4b2025f39d5816f2a5539c90b126d2f362bf881e (patch)
tree0aef03dc677fa666a68bf534d41b7bdd4e066899
parentebf3b7a522ddc1070d7694c6a14e6c5666180b0f (diff)
Errors in Makefiles corrected
-rw-r--r--2013/Makefile17
-rw-r--r--by-laws/Makefile3
-rw-r--r--operational-plans/Makefile3
3 files changed, 12 insertions, 11 deletions
diff --git a/2013/Makefile b/2013/Makefile
index 6126eda..6ab81b8 100644
--- a/2013/Makefile
+++ b/2013/Makefile
@@ -8,20 +8,23 @@ all: \
%.pdf: %.tex ../preamble/preamble.tex
latex_count=5 ;\
- latex_log=$$(echo $@ | sed 's/.pdf/.log') ;\
+ latex_log=$$(echo $@ | sed 's/.pdf/.log/') ;\
pdflatex $< ;\
- while egrep -s 'Rerun (LaTeX|to get cross-references right)' \\\
- $$latex_log && [ $$latex_count -gt 0 ] ;\
+ 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
+2013-03-23-annual.pdf: 2013-03-23-annual.tex \
+../preamble/preamble.tex \
+../annual-reports/annual-report-2013.tex \
+../by-laws/by-laws-2013.tex \
+../operational-plans/operational-plan-2013.tex \
+../annual-reports/2013-03-23-revisionsberaettelse.jpg
latex_count=5 ;\
- latex_log=$$(echo $@ | sed 's/.pdf/.log') ;\
+ latex_log=$$(echo $@ | sed 's/.pdf/.log/') ;\
pdflatex $< ;\
- while egrep -s 'Rerun (LaTeX|to get cross-references right)' \\\
- $$latex_log && [ $$latex_count -gt 0 ] ;\
+ 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;
diff --git a/by-laws/Makefile b/by-laws/Makefile
index f18edbf..e17d0dd 100644
--- a/by-laws/Makefile
+++ b/by-laws/Makefile
@@ -14,8 +14,7 @@ by-laws-2010.pdf
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 ] ;\
+ 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 ;\
diff --git a/operational-plans/Makefile b/operational-plans/Makefile
index 8c03650..dcaaaa0 100644
--- a/operational-plans/Makefile
+++ b/operational-plans/Makefile
@@ -13,8 +13,7 @@ operational-plan-2012.pdf
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 ] ;\
+ 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