Makefile: Use 'git describe' to name the version

This commit is contained in:
Adnan Maolood 2021-04-20 16:44:29 -04:00
parent df30a5e482
commit ddfa50202c

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