aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-08 09:14:22 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-09 15:05:19 +0100
commit6e142fa26e51554f2c8e83d8fb852bd90f0b9a66 (patch)
tree2062160306c44a4afa4268c328918fd47cfbf18e
parentef268e029d75ee58fb5a78c203278dfb98d212c5 (diff)
downloadvis-6e142fa26e51554f2c8e83d8fb852bd90f0b9a66.tar.gz
vis-6e142fa26e51554f2c8e83d8fb852bd90f0b9a66.tar.xz
build: make `vis -v` version output more robust
The `git describe` command fails in shallow checked out git repositories which do not include the tag information. At least include the git short hash.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ee85e9a..586667a 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ PREFIX ?= /usr/local
SHAREPREFIX ?= ${PREFIX}/share
MANPREFIX ?= ${PREFIX}/man
-VERSION = $(shell git describe 2>/dev/null || echo "0.2")
+VERSION = $(shell git describe --always 2>/dev/null || echo "0.2")
CONFIG_LUA ?= 1
CONFIG_ACL ?= 0