From 183732d172e52685bbb9069646c9e3551613eaaf Mon Sep 17 00:00:00 2001 From: "C. Maj" <52975048+chrsmj@users.noreply.github.com> Date: Mon, 17 Nov 2025 06:54:40 -0700 Subject: [PATCH] Makefile: Add module-list-* targets. Convenience wrappers for showing modules at various support levels. * module-list-core * module-list-extended * module-list-deprecated Resolves: #1572 UserNote: Try "make module-list-deprecated" to see what modules are on their way out the door. --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index fc2a229a4e..f0954ba7de 100644 --- a/Makefile +++ b/Makefile @@ -108,9 +108,13 @@ export XMLLINT export XMLSTARLET # makeopts is required unless the goal is just {dist{-}}clean +# or module-list-{core,extended,deprecated} ifeq ($(MAKECMDGOALS),clean) else ifeq ($(MAKECMDGOALS),distclean) else ifeq ($(MAKECMDGOALS),dist-clean) +else ifeq ($(MAKECMDGOALS),module-list-core) +else ifeq ($(MAKECMDGOALS),module-list-extended) +else ifeq ($(MAKECMDGOALS),module-list-deprecated) else include makeopts endif @@ -612,6 +616,13 @@ oldmodcheck: echo " WARNING WARNING WARNING" ;\ fi +# The module-list-* independent targets are for evaluation of the source tree +# to show which modules are at which support levels, without configure/compile. +module-list-core module-list-extended module-list-deprecated: + @s=$(subst module-list-,,$@) ;\ + echo "Showing all modules at support level '$$s':" ;\ + grep -l -r --include="*.c" --include="*.cc" --exclude-dir=tests --exclude-dir=utils "$$s" | sort + ld-cache-update: ifeq ($(LDCONFIG),) else ifeq ($(LDCONFIG),:)