Take lightweight tags into account in VERSION

This commit is contained in:
Johannes M. Griebler 2016-10-13 17:30:08 +02:00
parent f60131258a
commit f1b0e83776

View File

@ -5,7 +5,7 @@ MANPREFIX = ${PREFIX}/share/man
# In dist tarballs, the version is stored in the VERSION files.
VERSION := '$(shell [ -f VERSION ] && cat VERSION)'
ifeq ('',$(VERSION))
VERSION := $(shell git describe)
VERSION := $(shell git describe --tags)
endif
# Xinerama, comment if you don't want it