mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Makefile: Only set git version if BIRD is build from its repository.
Thanks to Toke Høiland-Jørgensen <toke@toke.dk> for reporting this bug.
This commit is contained in:
parent
823ad12191
commit
29958745c8
10
Makefile.in
10
Makefile.in
@ -21,11 +21,6 @@ INSTALL=@INSTALL@
|
|||||||
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
||||||
INSTALL_DATA=@INSTALL_DATA@
|
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@)
|
client=$(addprefix $(exedir)/,@CLIENT@)
|
||||||
daemon=$(exedir)/bird
|
daemon=$(exedir)/bird
|
||||||
protocols=@protocols@
|
protocols=@protocols@
|
||||||
@ -42,6 +37,11 @@ srcdir := @srcdir@
|
|||||||
objdir := @objdir@
|
objdir := @objdir@
|
||||||
exedir := @exedir@
|
exedir := @exedir@
|
||||||
|
|
||||||
|
git-label:=$(strip $(shell cd $(srcdir) && [ "$$(git rev-parse --show-toplevel)" = "$$(readlink -f .)" ] && git describe --always --dirty=-x 2>/dev/null))
|
||||||
|
ifneq ($(git-label),)
|
||||||
|
CFLAGS += -DGIT_LABEL="$(git-label)"
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(objdir),.)
|
ifeq ($(objdir),.)
|
||||||
objdir := $(realpath .)
|
objdir := $(realpath .)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user