aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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