summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristopher Browne <cbbrowne@ca.afilias.info>2016-06-15 11:13:29 -0400
committerChristopher Browne <cbbrowne@ca.afilias.info>2016-06-15 11:13:29 -0400
commite32b0960af07b4aea501cdc72ff31f6727506b19 (patch)
tree126dbcbae3c6fc6cbe272c135b23da6d15877c3b /Makefile
parentc5a034f98462b46ca9d694022c9f3f6a550d25ee (diff)
parent1d1ced53c7cec5da2ce21bdd405d1e20bd474321 (diff)
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f8c945045c..e93528600d 100644
--- a/Makefile
+++ b/Makefile
@@ -112,4 +112,9 @@ VPATH += $(QUANTUM_PATH)/audio
include $(TMK_PATH)/protocol/lufa.mk
include $(TMK_PATH)/common.mk
-include $(TMK_PATH)/rules.mk \ No newline at end of file
+include $(TMK_PATH)/rules.mk
+
+GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d")
+
+OPT_DEFS += -DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYMAP=\"$(KEYMAP)\"
+OPT_DEFS += -DQMK_VERSION=\"$(GIT_VERSION)\"