X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-cli.git;a=blobdiff_plain;f=Makefile;h=65dc031380c05bc79f832f501d1d0d233dd91c3a;hp=fadc3fe21a07cd2305aeb4157172482389965615;hb=aabf2c598db74783e62e81e4ca008ce47fe130ba;hpb=100450bf7c827826c305cbab0fb00e81bdcd1c77 diff --git a/Makefile b/Makefile index fadc3fe..65dc031 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ TARGET=xds-cli # Retrieve git tag/commit to set version & sub-version strings -GIT_DESC := $(shell git describe --always --tags) +GIT_DESC := $(shell git describe --always --tags --match "[0-9]*") VERSION := $(firstword $(subst -, ,$(GIT_DESC))) ifeq (-,$(findstring -,$(GIT_DESC))) SUB_VERSION := $(subst $(VERSION)-,,$(GIT_DESC))