summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-09-11 13:44:54 +0900
committertmk <nobody@nowhere>2013-09-11 13:44:54 +0900
commit8bc96ac57174692b7604ddc65e22dea6ddb1824b (patch)
tree89ea2e09d72d0634fc3201cfdd7b7a85a314e06c /common.mk
parentf7395268c0826d00f2d32db8abb9eba7e3159a75 (diff)
Add version string
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 47d5c852f3..64ef86c404 100644
--- a/common.mk
+++ b/common.mk
@@ -69,5 +69,9 @@ ifdef BACKLIGHT_ENABLE
endif
+# Version string
+OPT_DEFS += -DVERSION=$(shell (git describe --dirty || echo 'unknown') 2> /dev/null)
+
+
# Search Path
VPATH += $(TOP_DIR)/common