From: Christopher Browne Date: Wed, 15 Jun 2016 22:29:27 +0000 (-0400) Subject: Ensure there is a value even if not working within a git repo X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=90d057635545109d110f38b94d852ecd29321fe1;p=qmk_firmware.git Ensure there is a value even if not working within a git repo --- diff --git a/Makefile b/Makefile index 2c35e0f10..47fc785a6 100644 --- a/Makefile +++ b/Makefile @@ -114,7 +114,7 @@ include $(TMK_PATH)/protocol/lufa.mk include $(TMK_PATH)/common.mk include $(TMK_PATH)/rules.mk -GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null) +GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S") BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S") OPT_DEFS += -DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYMAP=\"$(KEYMAP)\" OPT_DEFS += -DQMK_VERSION=\"$(GIT_VERSION)\" -DQMK_BUILDDATE=\"$(BUILD_DATE)\"