From 6a8196fb934118d1794c2673985a7469edb0f0a7 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 29 Apr 2023 18:46:00 +0200 Subject: [PATCH] *.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 --- share/mk/src.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/src.mk b/share/mk/src.mk index 84ebcb97fe..e753c4f7b2 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 \ -- 2.47.2