aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-02 14:00:47 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-02 14:00:47 +0200
commitbab05a6977a4f07971355f43307b1450a7272a0e (patch)
tree948340a0fd986a688bc66966426fa83f64d07f5f /Makefile
downloadmmbtools-doc-bab05a6977a4f07971355f43307b1450a7272a0e.tar.gz
mmbtools-doc-bab05a6977a4f07971355f43307b1450a7272a0e.tar.bz2
mmbtools-doc-bab05a6977a4f07971355f43307b1450a7272a0e.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..36310c0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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
+