Makefile: Use 'git describe' to name the version

This commit is contained in:
adnano 2021-04-20 16:44:29 -04:00
parent 95839fcf4c
commit ec052a7c4c

View file

@ -2,7 +2,12 @@
.SUFFIXES:
.SUFFIXES: .1 .1.scd
VERSION=0.1.0-dev
_git_version=$(shell git describe --tags --dirty 2>/dev/null)
ifeq ($(strip $(_git_version)),)
VERSION=0.1.0
else
VERSION=$(_git_version)
endif
PREFIX?=/usr/local
BINDIR?=$(PREFIX)/bin