Always set sub-version
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 6 Nov 2017 14:20:23 +0000 (15:20 +0100)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 6 Nov 2017 15:00:04 +0000 (16:00 +0100)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Makefile

index 8b190c8..8eacc1f 100644 (file)
--- 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
 
 # for backward compatibility
 ifneq ($(origin INSTALL_DIR), undefined)