From 6e142fa26e51554f2c8e83d8fb852bd90f0b9a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 8 Nov 2016 09:14:22 +0100 Subject: 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3