summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLars Wirzenius <lwirzenius@wikimedia.org>2019-05-20 18:11:17 +0300
committerLars Wirzenius <lwirzenius@wikimedia.org>2019-05-20 18:11:17 +0300
commit86b058c3f13e70710e93f35bdd983ca3deecc953 (patch)
tree2c16245b9487aafdedc8b19efb5a64c0496d33b6 /Makefile
parent08d33c97433ca4f758ecdd045db8bb1dac925387 (diff)
downloadwmf-ci-arch-86b058c3f13e70710e93f35bdd983ca3deecc953.tar.gz
Change: use git describe for document date (version)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 138ad48..9769fe5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+version = $(shell git describe --tags HEAD)
+
.SUFFIXES: .html .mdwn .pdf .dot .svg
all: ci-arch.html ci-arch.pdf
@@ -12,6 +14,7 @@ ci-arch.pdf ci-arch.html: ci-arch.mdwn ecosystem.svg pipeline.svg
.mdwn.pdf:
pandoc --toc -f markdown+implicit_figures -Vdocumentclass:report \
+ "-Vdate:$(version)" \
-Vfontsize:12pt \
-Vmainfont:FreeSerif \
-Vsansfont:FreeSans \