X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-cli.git;a=blobdiff_plain;f=Makefile;h=c39329c20a64b7eaf43aab3e07fd5fafa0ee7d4c;hp=ef2644d7243b73ff678002222a08a87f37caffbd;hb=2ef44971f04a1f6c3e05cf40ac82c7f18f255b58;hpb=0df439bb10fe1f178b32aff8467e9671888eac4b 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