summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Lombera <jose@lombera.dev>2022-07-14 16:45:19 -0500
committerRobin Jarry <robin@jarry.cc>2022-07-17 18:38:40 +0200
commitf5e886406bd6ac54695947891156e37dae314a37 (patch)
tree731c77fa2b6dad0c0fc5967d172a2535429081cd
parent04097e874388bf30e808a9a9993230c668a36ec4 (diff)
downloadaerc-f5e886406bd6ac54695947891156e37dae314a37.zip
mk: compute version deterministically
Ensure abbreviated commit id of fixed length in computed version regardless of user's configuration. Choose length 12 as safe value. Link: https://github.com/git/git/commit/dce96489162b Signed-off-by: Jose Lombera <jose@lombera.dev> Acked-by: Moritz Poldrack <moritz@poldrack.dev> Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9d43e9b..66dc156 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
.SUFFIXES:
.SUFFIXES: .1 .5 .7 .1.scd .5.scd .7.scd
-VERSION!=git describe --long --tags --dirty 2>/dev/null || echo 0.11.0
+VERSION!=git describe --long --abbrev=12 --tags --dirty 2>/dev/null || echo 0.11.0
VPATH=doc
PREFIX?=/usr/local
BINDIR?=$(PREFIX)/bin