projects
/
qmk_firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb0e0c7
)
Ensure there is a value even if not working within a git repo
author
Christopher Browne
<cbbrowne@ca.afilias.info>
Wed, 15 Jun 2016 22:29:27 +0000
(18:29 -0400)
committer
Christopher Browne
<cbbrowne@ca.afilias.info>
Wed, 15 Jun 2016 22:29:27 +0000
(18:29 -0400)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 2c35e0f10870ada1fdb27abe1b4bef5bbc49d083..47fc785a6e089b84108f1b0a33f73198c697e0e9 100644
(file)
--- 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)\"