aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-06 15:15:36 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-06 15:31:52 +0100
commitd96e5b59d352f1c9eaf73a13d5c4bc25c6a4ebc4 (patch)
treec4e96b68665f26e62ffa42c483d75d4060fe5777
parent57670b6f5a8e98c80670b0627bfad7dec7085f54 (diff)
Always set sub-version
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 51e1795..18638c6 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,9 @@ SUB_VERSION := $(subst $(VERSION)-,,$(GIT_DESC))
ifeq ($(VERSION), )
VERSION := unknown-dev
endif
+ifeq ($(SUB_VERSION), )
+ SUB_VERSION := $(shell date +'%Y-%m-%d_%H%M%S')
+endif
# Configurable variables for installation (default /opt/AGL/...)
ifeq ($(origin DESTDIR), undefined)