Pass --tags to git describe

Fixes #1003.
This commit is contained in:
Bastien Dejean 2019-08-26 17:07:49 +02:00
parent f0558346b2
commit df7c6cc781

View file

@ -1,4 +1,4 @@
VERCMD ?= git describe 2> /dev/null
VERCMD ?= git describe --tags 2> /dev/null
VERSION := $(shell $(VERCMD) || cat VERSION)
CPPFLAGS += -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\"