If the MANSECT variable is specified, it will override the default

manual section.  If, for example, MANSECT is set to 8, the default
MAN1=${PROG}.1 feature of bsd.prog.mk becomes MAN8=${PROG}.8.
Useful for games, libexec, sbin and usr.sbin subtrees.

Reviewed by:	bde
This commit is contained in:
Ruslan Ermilov 2001-03-20 18:06:09 +00:00
parent 85ae580ccb
commit 6b10ad2220
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74527

View File

@ -60,7 +60,10 @@ ${PROG}: ${OBJS}
!defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
!defined(MAN7) && !defined(MAN8) && !defined(MAN9) && \
!defined(NOMAN) && !defined(MAN1aout)
MAN1= ${PROG}.1
MANSECT?= 1
.for sect in ${MANSECT}
MAN${sect}= ${PROG}.${sect}
.endfor
.endif
.endif