Module: kamailio
Branch: master
Commit: 299db405e54741e4dc1ec04e6658d6bc99901edf
URL:
https://github.com/kamailio/kamailio/commit/299db405e54741e4dc1ec04e6658d6b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-12-02T18:00:18+01:00
src/Makefiles: filter out CMakeLists.txt from modules discovery
---
Modified: src/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/299db405e54741e4dc1ec04e6658d6b…
Patch:
https://github.com/kamailio/kamailio/commit/299db405e54741e4dc1ec04e6658d6b…
---
diff --git a/src/Makefile b/src/Makefile
index 28106b06852..4ba662535bb 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -118,10 +118,10 @@ endif
endif
else # config.mak doesn't need to be used
ifneq (,$(filter cfg config cfg-defs,$(word 1,$(MAKECMDGOALS))))
-# needed here to avoid starting a config submake
-# (e.g. rm -f config.mak; make config.mak), which would either require
+# needed here to avoid starting a config submake
+# (e.g. rm -f config.mak; make config.mak), which would either require
# double Makefile.defs defines execution (suboptimal), would loose
-# $(value ...) expansion or would cause some warning (if Makefile.defs exec.
+# $(value ...) expansion or would cause some warning (if Makefile.defs exec.
# is skipped in the "main" makefile invocation).
$(shell rm -rf config.mak)
config_mak=0
@@ -154,12 +154,13 @@ export extra_defs
# When group_include is used, we want: include_modules (based on group_include)
# - exclude_modules
-ifneq ($(modules_configured),1)
+ifneq ($(modules_configured),1)
#modules_all=$(filter-out modules/CVS,$(wildcard modules/*))
# create modules*_all vars
$(foreach mods,$(modules_dirs),$(eval \
- $(mods)_all=$$(filter-out $(mods)/CVS,$$(wildcard $(mods)/*))))
+ $(mods)_all=$$(filter-out $(mods)/CVS $(mods)/CMakeLists.txt, \
+ $$(wildcard $(mods)/*))))
#debugging
#$(foreach mods,$(modules_dirs),$(info "$(mods)_all=$($(mods)_all)"))
@@ -168,7 +169,7 @@ $(foreach mods,$(modules_dirs),$(eval \
$(mods)=$$(filter-out $$(addprefix $(mods)/, \
$$(exclude_modules) $$(static_modules)), \
$$(addprefix $(mods)/, $$(include_modules) )) ))
-else
+else
# Standard, old resultant set
$(foreach mods,$(modules_dirs),$(eval \
$(mods)_noinc=$$(filter-out $$(addprefix $(mods)/, \
@@ -214,14 +215,14 @@ C_INSTALL_UTILS= ../utils/kamctl
else
C_INSTALL_UTILS=
endif
-# list of scripts that should be installed along the core
+# list of scripts that should be installed along the core
# (here a script is something that doesn't have a Makefile)
C_INSTALL_SCRIPTS=
# list of extra configs that should be installed along the core
# Note: all the paths of the form /usr/*lib/$(CFG_NAME)/<module_dir>
# will be updated to the directory where the modules will be installed.
C_INSTALL_CFGS=
-# list of files that should be installed in the arch-independent
+# list of files that should be installed in the arch-independent
# directory (by default /usr/local/share/$(MAIN_NAME)))
C_INSTALL_SHARE=
@@ -237,11 +238,11 @@ tar_extra_args+=$(addprefix --exclude=$(notdir $(CURDIR))/, \
ifeq ($(CORE_TLS), 1)
tar_extra_args+=
else
- tar_extra_args+=--exclude=$(notdir $(CURDIR))/tls/*
+ tar_extra_args+=--exclude=$(notdir $(CURDIR))/tls/*
endif
ifneq ($(nodeb),)
- tar_extra_args+=--exclude=$(notdir $(CURDIR))/debian
+ tar_extra_args+=--exclude=$(notdir $(CURDIR))/debian
tar_name:=$(tar_name)_nodeb
endif
@@ -513,7 +514,7 @@ $(foreach mods,$(modules_dirs),$(eval $(call
MODULES_RULES_template,$(mods))))
modules-all every-module: $(modules_dirs)
$(extra_objs):
- @echo "Extra objs: $(extra_objs)"
+ @echo "Extra objs: $(extra_objs)"
@for r in $(static_modules_path) "" ; do \
if [ -n "$$r" -a -r "$$r/Makefile" ]; then \
$(call oecho, "" ;) \
@@ -670,10 +671,10 @@ mk-install_dirs: $(cfg_prefix)/$(cfg_dir) $(bin_prefix)/$(bin_dir)
\
$(modules_prefix)/$(modules_dir)$(mods) \
$(doc_prefix)/$(doc_dir)$(mods) )
-$(cfg_prefix)/$(cfg_dir):
+$(cfg_prefix)/$(cfg_dir):
mkdir -p $(cfg_prefix)/$(cfg_dir)
-$(run_prefix)/$(run_dir):
+$(run_prefix)/$(run_dir):
mkdir -p $(run_prefix)/$(run_dir)
$(bin_prefix)/$(bin_dir):