Add {MK,NO}INFO, and use that to control generation/installation of Info

documentation.  MKINFO=no is implied by MKSHARE=no.
This commit is contained in:
tv 1999-02-12 15:01:08 +00:00
parent 3fd0fbd058
commit f727f277a7
2 changed files with 11 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.info.mk,v 1.6 1999/02/12 01:10:06 lukem Exp $
# $NetBSD: bsd.info.mk,v 1.7 1999/02/12 15:01:08 tv Exp $
.if !target(__initialized__)
__initialized__:
@ -19,7 +19,7 @@ INSTALL_INFO?= install-info
.txi.info .texi.info .texinfo.info:
@${MAKEINFO} ${INFOFLAGS} --no-split -o $@ $<
.if defined(TEXINFO) && !empty(TEXINFO) && ${MKSHARE} != "no"
.if defined(TEXINFO) && !empty(TEXINFO) && ${MKINFO} != "no"
INFOFILES= ${TEXINFO:C/\.te?xi(nfo)?$/.info/}
FILES+= ${INFOFILES}
@ -37,7 +37,7 @@ FILESMODE_${F}= ${INFOMODE}
FILESNAME_${F}= ${F:T}
.endfor
.if ${MKSHARE} != "no"
.if ${MKINFO} != "no"
all: ${INFOFILES}
.else
all:

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.117 1999/02/12 12:38:45 lukem Exp $
# $NetBSD: bsd.own.mk,v 1.118 1999/02/12 15:01:08 tv Exp $
.if !defined(_BSD_OWN_MK_)
_BSD_OWN_MK_=1
@ -181,6 +181,12 @@ MKDOC=no
MKDOC?=yes
.endif
.if defined(NOINFO)
MKINFO=no
.else
MKINFO?=yes
.endif
.if defined(NOLINKLIB)
MKLINKLIB=no
.else
@ -244,6 +250,7 @@ MKSHARE?=yes
.if ${MKSHARE} == "no"
MKCATPAGES=no
MKDOC=no
MKINFO=no
MKMAN=no
MKNLS=no
.endif