summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-03-20 18:06:09 +0000
committerru <ru@FreeBSD.org>2001-03-20 18:06:09 +0000
commit644a2f54595a4b21a1ccb954cf4fc511204a1658 (patch)
tree93968610bd2757783332b1e56d9cd2c435513025 /share
parent04ec7b65a28eac8f1623d24f0a478deb1a074faa (diff)
downloadFreeBSD-src-644a2f54595a4b21a1ccb954cf4fc511204a1658.zip
FreeBSD-src-644a2f54595a4b21a1ccb954cf4fc511204a1658.tar.gz
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
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.prog.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index ad5b674..e74b7f2 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -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
OpenPOWER on IntegriCloud