aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-07 14:35:59 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-07 14:35:59 +0200
commit64ed54b54f8efe6a0fd350cfc43970eba90a4a57 (patch)
tree12c31dfc5829d7f0d9e140c8a4e961f014940439
parent98a61bee85af20f2c6c7bb0e144b9d0a06697f37 (diff)
Fix version / sub-version retrieval.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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)))