[sr-dev] git:5.1:a0268561: src/Makefile: adjust Makefile to populate REPO_ variables in autover.h again
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jun 21 08:38:26 CEST 2018
Module: kamailio
Branch: 5.1
Commit: a026856140a66d9edf4f81c133431d93c2e3392e
URL: https://github.com/kamailio/kamailio/commit/a026856140a66d9edf4f81c133431d93c2e3392e
Author: Mikko Lehto <mslehto at iki.fi>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-06-21T08:28:19+02:00
src/Makefile: adjust Makefile to populate REPO_ variables in autover.h again
(cherry picked from commit 7585a57037f6ef21cda376b16b0077fa981eceac)
---
Modified: src/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/a026856140a66d9edf4f81c133431d93c2e3392e.diff
Patch: https://github.com/kamailio/kamailio/commit/a026856140a66d9edf4f81c133431d93c2e3392e.patch
---
diff --git a/src/Makefile b/src/Makefile
index d0faa5d473..5b67d7ad67 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -348,7 +348,7 @@ modules-cfg modules-list modules-lst:
rm -f modules.lst
$(MAKE) modules.lst
-ifneq ($(wildcard .git),)
+ifneq ($(wildcard ../.git),)
# if .git/ exists
repo_ver=$(shell RV=`git rev-parse --verify --short=6 HEAD 2>/dev/null`;\
[ -n "$$RV" ] && \
@@ -358,7 +358,7 @@ repo_ver=$(shell RV=`git rev-parse --verify --short=6 HEAD 2>/dev/null`;\
RV="$$RV"-dirty; echo "$$RV")
repo_hash=$(subst -dirty,,$(repo_ver))
repo_state=$(subst %-dirty,dirty,$(findstring -dirty,$(repo_ver)))
-autover_h_dep=.git $(filter-out $(auto_gen), $(sources)) core/cfg.y core/cfg.lex Makefile
+autover_h_dep=../.git $(filter-out $(auto_gen), $(sources)) core/cfg.y core/cfg.lex Makefile
else
# else if .git/ does not exist
repo_ver=
More information about the sr-dev
mailing list