summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-04-29 18:46:00 +0200
committerAlejandro Colomar <alx@kernel.org>2023-04-29 18:46:14 +0200
commit6a8196fb934118d1794c2673985a7469edb0f0a7 (patch)
tree8b018d9adaaad93fdd5406bd63edc25b7e7a3af0
parentd52ff90035ceedfab4d34b4316b94519a0864e21 (diff)
*.mk: MANEXT: Support man pages with .man and/or .in suffixes
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>
-rw-r--r--share/mk/src.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/src.mk b/share/mk/src.mk
index 84ebcb97f..e753c4f7b 100644
--- a/share/mk/src.mk
+++ b/share/mk/src.mk
@@ -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 \