Skip to content

Commit

Permalink
Makefile: Fix git detection when building in a subdir (#299)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
orgads authored Jun 29, 2023
1 parent 59dd6ff commit 1e44181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MYVERSION=$(shell [ -e .git ] && git describe --always || echo 1.0.0)
MYVERSION=$(shell git describe --always 2>/dev/null || echo 1.0.0)
INCLUDES= -I${srcdir}/deps/sofia-sip/libsofia-sip-ua/su -I${srcdir}/deps/sofia-sip/libsofia-sip-ua/nta \
-I${srcdir}/deps/sofia-sip/libsofia-sip-ua/sip -I${srcdir}/deps/sofia-sip/libsofia-sip-ua/msg \
-I${srcdir}/deps/sofia-sip/libsofia-sip-ua/url -I${srcdir}/deps/sofia-sip/libsofia-sip-ua/tport \
Expand Down

0 comments on commit 1e44181

Please sign in to comment.