summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-12-13 19:18:30 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-12-13 19:18:30 +0100
commitc36a298c21f1aa5b4e61d2d4740811529175df09 (patch)
tree67ea7fed85ed947547779762613bc5561e9d7796 /Makefile.in
parentd807ea087f8d60e25eaef8c10168a40ca6545c57 (diff)
Use git describe for BIRD version
Based on patch from Pavel Tvrdik
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index e1f8d9c2..fdd5e6c7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -21,6 +21,11 @@ INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
+git-label:=$(strip $(shell git describe --always --dirty=-x 2>/dev/null))
+ifneq ($(git-label),)
+ CFLAGS += -DGIT_LABEL="$(git-label)"
+endif
+
client=$(addprefix $(exedir)/,@CLIENT@)
daemon=$(exedir)/bird
protocols=@protocols@