blob: 543f8e939c07f33f6eb34c0634443b713f1503b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
latexfile = mmbtools
includes = introduction.tex \
interfaces.tex \
scenarios.tex \
appendix.tex \
systemenvironments.tex
bib = dab.bib
all: $(latexfile).pdf
$(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
git log -1 --format="format:\
\\gdef\\GITAbrHash{%h}\
\\gdef\\GITAuthorDate{%ad}\
\\gdef\\GITAuthorName{%an}" >> vc.tex
clean:
rm -f *.aux $(latexfile).{pdf,out,toc,log,bbl,blg}
|