Index: bsd.man.mk
===================================================================
RCS file: /cvsroot/src/share/mk/bsd.man.mk,v
retrieving revision 1.112
diff -d -p -u -r1.112 bsd.man.mk
--- bsd.man.mk	21 Mar 2013 02:04:17 -0000	1.112
+++ bsd.man.mk	25 Oct 2013 09:17:21 -0000
@@ -32,6 +32,7 @@ MANTARGET?=	cat
 MAN?=
 MLINKS?=
 _MNUMBERS=	1 2 3 4 5 6 7 8 9
+_MNUMBERS+=	3lua 9lua
 .SUFFIXES:	${_MNUMBERS:@N@.$N@}
 
 .if ${MKMANZ} == "no"
@@ -123,7 +124,7 @@ manlinks::	${_t}
 .if (${MKCATPAGES} != "no") && (${MKMAN} != "no")
 catinstall:	catpages catlinks
 catpages::	# ensure target exists
-CATPAGES=	${MAN:C/\.([1-9])$/.cat\1${MANSUFFIX}/}
+CATPAGES=	${MAN:C/\.([1-9][a-z]*)$/.cat\1${MANSUFFIX}/}
 
 realall:	${CATPAGES}
 .NOPATH:	${CATPAGES}
@@ -191,7 +192,7 @@ catlinks::	${_t}
 .if (${MKHTML} != "no") && (${MKMAN} != "no")		# {
 htmlinstall:	htmlpages htmllinks
 htmlpages::	# ensure target exists
-HTMLPAGES=	${MAN:C/\.([1-9])$/.html\1/}
+HTMLPAGES=	${MAN:C/\.([1-9][a-z]*)$/.html\1/}
 
 HTMLLINKS=	${MANSUBDIR:?../:}../html%S/%N.html
 HTMLSTYLE=	${MANSUBDIR:?../:}../style.css
