Subject: misc/1741: NROFF?= in bsd.man.mk
To: None <gnats-bugs@gnats.netbsd.org>
From: Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
List: netbsd-bugs
Date: 11/08/1995 19:00:54
>Number: 1741
>Category: misc
>Synopsis: NROFF?= in bsd.man.mk
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Nov 8 05:20:01 1995
>Last-Modified:
>Originator: Masanobu Saitoh
>Organization:
The University of Electro-Communications
>Release: latest -current
>Environment:
System: NetBSD vfault.spa.is.uec.ac.jp 1.1_ALPHA NetBSD 1.1_ALPHA (VFAULT) #7: Sun Nov 5 21:03:29 JST 1995 lannet@vfault.spa.is.uec.ac.jp:/var/spool/ftp/vfault/src/sys/arch/i386/compile/VFAULT i386
>Description:
I want to change bsd.man.mk as follows, because GNU roff is not
multilingual.
For example, I want to compile and install japanese manpages
with /usr/local/bin/gnroff (not /usr/bin/nroff).
>How-To-Repeat:
>Fix:
Apply following patch.
--- bsd.man.mk.orig Fri Nov 3 15:50:26 1995
+++ bsd.man.mk Wed Nov 8 18:21:01 1995
@@ -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 @@
.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}
>Audit-Trail:
>Unformatted: