From: Alejandro Colomar Date: Sat, 29 Apr 2023 16:46:00 +0000 (+0200) Subject: *.mk: MANEXT: Support man pages with .man and/or .in suffixes X-Git-Tag: man-pages-6.05~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a8196fb934118d1794c2673985a7469edb0f0a7;p=thirdparty%2Fman-pages.git *.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 --- 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 \