summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-13 04:21:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-13 04:21:05 +0000
commit2d7f97b8d3817b5cabe171f8b3fed4fc29489617 (patch)
tree4dd8b6f02d74ac963bda88c788cbb439d7fb8db7 /share
parent66d75b04dbffcde470d2669573e84828a017036d (diff)
allow override of nroff command; from msaitoh@spa.is.uec.ac.jp, netbsd pr #1741
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.man.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk
index 0460a751669..8c0ffcc19fb 100644
--- a/share/mk/bsd.man.mk
+++ b/share/mk/bsd.man.mk
@@ -2,6 +2,7 @@
# @(#)bsd.man.mk 5.2 (Berkeley) 5/11/90
MANTARGET?= cat
+NROFF?= nroff
.if !target(.MAIN)
.if exists(${.CURDIR}/../Makefile.inc)
@@ -15,8 +16,8 @@ MANTARGET?= cat
.cat7 .cat8
.8.cat8 .7.cat7 .6.cat6 .5.cat5 .4.cat4 .3.cat3 .2.cat2 .1.cat1:
- @echo "nroff -mandoc ${.IMPSRC} > ${.TARGET}"
- @nroff -mandoc ${.IMPSRC} > ${.TARGET} || ( rm -f ${.TARGET} ; false )
+ @echo "${NROFF} -mandoc ${.IMPSRC} > ${.TARGET}"
+ @${NROFF} -mandoc ${.IMPSRC} > ${.TARGET} || ( rm -f ${.TARGET} ; false )
.if defined(MAN) && !empty(MAN)
MANALL= ${MAN:S/.1$/.cat1/g:S/.2$/.cat2/g:S/.3$/.cat3/g:S/.4$/.cat4/g:S/.5$/.cat5/g:S/.6$/.cat6/g:S/.7$/.cat7/g:S/.8$/.cat8/g}