From 2ef44971f04a1f6c3e05cf40ac82c7f18f255b58 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Mon, 6 Nov 2017 17:35:13 +0100 Subject: [PATCH] Fixed version setting. --- Makefile | 4 ++-- 1 file 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 -- 2.16.6