]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Makefile: Add module-list-* targets.
authorC. Maj <52975048+chrsmj@users.noreply.github.com>
Mon, 17 Nov 2025 13:54:40 +0000 (06:54 -0700)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 19 Nov 2025 13:15:39 +0000 (13:15 +0000)
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

index fc2a229a4e55329c18fe7336714ca1ad266361c9..f0954ba7de62b4c5ece6c5da98c76544e1092bde 100644 (file)
--- 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 "<support_level>$$s</support_level>" | sort
+
 ld-cache-update:
 ifeq ($(LDCONFIG),)
 else ifeq ($(LDCONFIG),:)