Always set sub-version
[src/xds/xds-server.git] / 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)