aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7ac8895..fa3e3e2 100644
--- a/Makefile
+++ b/Makefile
@@ -4,13 +4,20 @@ includes = introduction.tex \
scenarios.tex \
appendix.tex
+bib = dab.bib
+
all: $(latexfile).pdf
-$(latexfile).pdf : $(latexfile).tex vc.tex $(includes)
- while (pdflatex $(latexfile) ; \
- grep -q "Rerun to get cross" $(latexfile).log ) do true ; \
+$(latexfile).pdf : $(bib) $(latexfile).tex vc.tex $(includes)
+ while ( \
+ pdflatex $(latexfile) ; \
+ bibtex $(latexfile) ; \
+ grep -q "Rerun to get cross" $(latexfile).log \
+ ) do true ; \
done
+ bibtex $(latexfile)
+
vc.tex: .git/logs/HEAD
echo "%%% This file is generated by Makefile." > vc.tex
echo "%%% Do not edit this file!\n%%%" >> vc.tex
@@ -19,3 +26,6 @@ vc.tex: .git/logs/HEAD
\\gdef\\GITAuthorDate{%ad}\
\\gdef\\GITAuthorName{%an}" >> vc.tex
+clean:
+ rm -f *.aux $(latexfile).{pdf,out,toc,log,bbl,blg}
+