aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-08-29 00:30:26 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-08-29 13:36:25 +0200
commitcfe84507a37a65efcb22e7abe3247b4c7704d0a8 (patch)
treec80c3d7d07b9e7c393a2532c377036635d44c57b
parent212adfdaaeef33df181a0e916f2b79c7d2d78d61 (diff)
Fix subversion setting
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 95afe2e..ee8e5e2 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,8 @@ ifeq ($(origin SUB_VERSION), undefined)
ifneq ($(SUB_VERSION), )
VERSION := $(firstword $(subst -, ,$(SUB_VERSION)))
SUB_VERSION := $(word 2,$(subst -, ,$(SUB_VERSION)))
- else
+ endif
+ ifeq ($(SUB_VERSION), )
SUB_VERSION := $(shell git rev-parse --short HEAD)
ifeq ($(SUB_VERSION), )
SUB_VERSION := unknown-dev