From e65f92c7392a1cc9cc76c7d4c66dd249f5551439 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sat, 24 Jun 2023 22:31:51 +0300 Subject: [PATCH] Support building without Git (#293) For example, when building inside Docker, or from tar source. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 59dc5b3393..53ad0b214b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -MYVERSION=$(shell git describe --always) +MYVERSION=$(shell [ -e .git ] && git describe --always || 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 \