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),:)