aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristopher Browne <[email protected]>2016-06-15 11:36:27 -0400
committerChristopher Browne <[email protected]>2016-06-15 11:36:27 -0400
commitbb0e0c7eba5fd37df5b66cd77fc8b0a382ef48b1 (patch)
tree2025e71ffb86e6d38383b4603a7e116f9b6ce2a6 /Makefile
parent4e1bc2d298defff58316cac9de00f0495b02c742 (diff)
downloadqmk_firmware-bb0e0c7eba5fd37df5b66cd77fc8b0a382ef48b1.tar.gz
qmk_firmware-bb0e0c7eba5fd37df5b66cd77fc8b0a382ef48b1.zip
Split build date into a separate DEFINE
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e93528600d..2c35e0f108 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 || date +"%Y-%m-%d")
-
+GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null)
+BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S")
OPT_DEFS += -DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYMAP=\"$(KEYMAP)\"
-OPT_DEFS += -DQMK_VERSION=\"$(GIT_VERSION)\"
+OPT_DEFS += -DQMK_VERSION=\"$(GIT_VERSION)\" -DQMK_BUILDDATE=\"$(BUILD_DATE)\"