mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 09:23:09 +00:00
Makefile: Use 'git describe' to name the version
This commit is contained in:
parent
df30a5e482
commit
ddfa50202c
7
Makefile
7
Makefile
|
@ -2,7 +2,12 @@
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .1 .1.scd
|
.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
|
PREFIX?=/usr/local
|
||||||
BINDIR?=$(PREFIX)/bin
|
BINDIR?=$(PREFIX)/bin
|
||||||
|
|
Loading…
Reference in a new issue