projects
/
hdmi-switcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add version constant
[hdmi-switcher.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
9c6d836
..
4b4056a
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,4
+1,5
@@
-CC = gcc -Wall
+GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags)
+CC = gcc -Wall -DVERSION=\"$(GIT_VERSION)\"
lib_inih := lib/inih
libs := $(lib_inih)