projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
version command: make it scriptable
[fw/openocd]
/
src
/
Makefile.am
diff --git
a/src/Makefile.am
b/src/Makefile.am
index a566b4d422fdce4cfd98079a4e3fca3dd55de687..56385f7e19ae04599fd194e5f2f6d9f0a0724230 100644
(file)
--- a/
src/Makefile.am
+++ b/
src/Makefile.am
@@
-44,6
+44,7
@@
libopenocd_la_CPPFLAGS += -DRELSTR=\"\"
else
libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
endif
+libopenocd_la_CPPFLAGS += -DGITVERSION=\"`cd $(top_srcdir) && git describe`\"
# add default CPPFLAGS
libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)