summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-06 17:35:13 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-06 17:35:13 +0100
commit2ef44971f04a1f6c3e05cf40ac82c7f18f255b58 (patch)
treea7722a02d07f19a2a854060bc080279eab5d91a1 /Makefile
parent0df439bb10fe1f178b32aff8467e9671888eac4b (diff)
Fixed version setting.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ef2644d..c39329c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
# Makefile used to build xds-cli commands
-# Application Version
+# Application Name
TARGET=xds-cli
# Retrieve git tag/commit to set version & sub-version strings
GIT_DESC := $(shell git describe --always --tags)
VERSION := $(firstword $(subst -, ,$(GIT_DESC)))
-SUB_VERSION := $(wordlist 2,3,$(subst -, ,$(GIT_DESC)))
+SUB_VERSION := $(subst $(VERSION)-,,$(GIT_DESC))
ifeq ($(VERSION), )
VERSION := unknown-dev
endif