From: Sebastien Douheret Date: Mon, 6 Nov 2017 16:35:13 +0000 (+0100) Subject: Fixed version setting. X-Git-Tag: v0.1.0~11 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-cli.git;a=commitdiff_plain;h=2ef44971f04a1f6c3e05cf40ac82c7f18f255b58 Fixed version setting. --- 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