git://git.camperquake.de
/
time-slider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f1f6d0
)
Autogenerate git-describe version numbers
author
Ralf Ertzinger
<ralf@skytale.net>
Fri, 21 Feb 2014 19:34:30 +0000
(20:34 +0100)
committer
Ralf Ertzinger
<ralf@skytale.net>
Fri, 21 Feb 2014 19:34:30 +0000
(20:34 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
6ab8dea
..
ef0c9aa
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,4
+1,8
@@
-include VERSION
+ifeq ($(wildcard .git),)
+ include VERSION
+else
+ VERSION=$(shell git describe)
+endif
mkinstalldirs = /usr/bin/mkdir -p
INSTALL = /usr/bin/install