1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-09-19 01:31:36 +02:00

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