commit 880d8740f99c7efd0d2fca09752d181c5e5d1972
parent 77e359d8a4d9c4773354d9fa833b07d31d95420f
Author: Bastien Dejean <nihilhill@gmail.com>
Date: Mon, 26 Aug 2019 17:13:07 +0200
Pass `--tags` to `git describe`
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,5 +1,5 @@
OUT = sxhkd
-VERCMD ?= git describe 2> /dev/null
+VERCMD ?= git describe --tags 2> /dev/null
VERSION := $(shell $(VERCMD) || cat VERSION)
CPPFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\"