X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=Makefile;h=615be5387622d1e885315d95333dacab799ee108;hb=64ed54b54f8efe6a0fd350cfc43970eba90a4a57;hp=2f7ad2de0c46c53f9fd0e85e12a7ed52f5371e71;hpb=98a61bee85af20f2c6c7bb0e144b9d0a06697f37;p=src%2Fxds%2Fxds-server.git diff --git a/Makefile b/Makefile index 2f7ad2d..615be53 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ SYNCTHING_INOTIFY_VERSION=master # Retrieve git tag/commit to set sub-version string ifeq ($(origin SUB_VERSION), undefined) - SUB_VERSION := $(shell git describe --tags 2>/dev/null | sed 's/^v//') + SUB_VERSION := $(shell git describe --exact-match --tags 2>/dev/null | sed 's/^v//') ifneq ($(SUB_VERSION), ) VERSION := $(firstword $(subst -, ,$(SUB_VERSION))) SUB_VERSION := $(word 2,$(subst -, ,$(SUB_VERSION)))