]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
*.mk: MANEXT: Support man pages with .man and/or .in suffixes
authorAlejandro Colomar <alx@kernel.org>
Sat, 29 Apr 2023 16:46:00 +0000 (18:46 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sat, 29 Apr 2023 16:46:14 +0000 (18:46 +0200)
Those are common in some projects in their source pages; especially
'.in' when it's a template that will be completed by the build system.

This allows linting other projects' pages by running a command like:

$ make lint MANDIR=/home/alx/src/nginx/unit/master/docs/man

Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/src.mk

index 84ebcb97feac9e39d6b894f72c1b124798a199f5..e753c4f7b22f49cf8b22fb7a7c0562c231397501 100644 (file)
@@ -12,7 +12,7 @@ include $(MAKEFILEDIR)/cmd.mk
 
 
 MANDIR := $(srcdir)
-MANEXT := \.[0-9]\w*$
+MANEXT := \.[0-9]\w*\(\.man\)\?\(\.in\)\?$
 
 
 MANPAGES := $(shell $(FIND) $(MANDIR)/man*/ -type f \