]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Merge pull request #299 from kairyu/speed-up-compilation
authortmk <tmk@users.noreply.github.com>
Sun, 24 Jan 2016 01:16:43 +0000 (10:16 +0900)
committertmk <tmk@users.noreply.github.com>
Sun, 24 Jan 2016 01:16:43 +0000 (10:16 +0900)
core: Speed up compilation

tmk_core/common.mk

index 3b53c0a046764e6b50c120c03c03c2451a3ab417..e165a78b9b8152b72405c924c1d3ecbf86ba5b52 100644 (file)
@@ -81,7 +81,8 @@ ifdef KEYMAP_SECTION_ENABLE
 endif
 
 # Version string
-OPT_DEFS += -DVERSION=$(shell (git describe --always --dirty || echo 'unknown') 2> /dev/null)
+VERSION := $(shell (git describe --always --dirty || echo 'unknown') 2> /dev/null)
+OPT_DEFS += -DVERSION=$(VERSION)
 
 
 # Search Path