Fix subversion setting
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 28 Aug 2017 22:30:26 +0000 (00:30 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Tue, 29 Aug 2017 11:36:25 +0000 (13:36 +0200)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Makefile

index 95afe2e..ee8e5e2 100644 (file)
--- 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