blob: 36310c0f84da86939d89db7bc3053400bc44ba43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
latexfile = mmbtools
all: $(latexfile).pdf
$(latexfile).pdf : $(latexfile).tex vc.tex
while (pdflatex $(latexfile) ; \
grep -q "Rerun to get cross" $(latexfile).log ) do true ; \
done
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
|