Skip to content

Commit 6894ea0

Browse files
bhanuseshukumarJonathan Corbet
authored andcommitted
docs: Makefile: Sort Documentation targets case-insensitively in make help
Avoid case-sensitive sorting when listing Documentation targets in make help. Previously, targets like PCI and RCU appeared ahead of others due to uppercase names. Normalize casing during _SPHINXDIRS generation to ensure consistent and intuitive ordering. Fixes: 965fc39 ("Documentation: sort _SPHINXDIRS for 'make help'") Tested-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Bhanu Seshu Kumar Valluri <bhanuseshukumar@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <20251104061723.16629-1-bhanuseshukumar@gmail.com>
1 parent 0c6636d commit 6894ea0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ cleandocs:
8484
$(Q)rm -rf $(BUILDDIR)
8585

8686
# Used only on help
87-
_SPHINXDIRS = $(sort $(patsubst $(srctree)/Documentation/%/index.rst,%,$(wildcard $(srctree)/Documentation/*/index.rst)))
87+
_SPHINXDIRS = $(shell printf "%s\n" $(patsubst $(srctree)/Documentation/%/index.rst,%,$(wildcard $(srctree)/Documentation/*/index.rst)) | sort -f)
8888

8989
dochelp:
9090
@echo ' Linux kernel internal documentation in different formats from ReST:'

0 commit comments

Comments
 (0)