Add a new way to get VERSION

This commit is contained in:
2021-12-03 14:12:45 +01:00
parent c74fa8077b
commit cdfc2b8715

View File

@@ -1,4 +1,6 @@
VERSION=0.1.1-alpha CUR_SHA=$(shell git log -n1 --pretty='%h')
CUR_BRANCH=$(shell git branch --show-current)
VERSION=$(shell git describe --exact-match --tags $(CUR_SHA) 2>/dev/null || echo $(CUR_BRANCH)-$(CUR_SHA))
CTN:=$(shell which podman 2>&1 1>/dev/null && echo "podman" || echo "docker") CTN:=$(shell which podman 2>&1 1>/dev/null && echo "podman" || echo "docker")
PREFIX=~/.local PREFIX=~/.local