Skip to content

Commit 1e44181

Browse files
authored
Makefile: Fix git detection when building in a subdir (#299)
This should work if you build in $srcdir/build, but it will fail if you build *outside* the source directory (e.g. $srcdir/../drachtio-build).
1 parent 59dd6ff commit 1e44181

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MYVERSION=$(shell [ -e .git ] && git describe --always || echo 1.0.0)
1+
MYVERSION=$(shell git describe --always 2>/dev/null || echo 1.0.0)
22
INCLUDES= -I${srcdir}/deps/sofia-sip/libsofia-sip-ua/su -I${srcdir}/deps/sofia-sip/libsofia-sip-ua/nta \
33
-I${srcdir}/deps/sofia-sip/libsofia-sip-ua/sip -I${srcdir}/deps/sofia-sip/libsofia-sip-ua/msg \
44
-I${srcdir}/deps/sofia-sip/libsofia-sip-ua/url -I${srcdir}/deps/sofia-sip/libsofia-sip-ua/tport \

0 commit comments

Comments
 (0)