Update command used to extract version from tag
[src/xds/xds-cli.git] / Makefile
index fadc3fe..65dc031 100644 (file)
--- 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))