for MKSHARE=no, set MKDOC=no MKMAN=no MKNLS=no, and for MKMAN=no, set

MKCATPAGES=no.  this simplifies various tests.
This commit is contained in:
lukem 1999-02-12 12:38:44 +00:00
parent f598822c56
commit 41510f9a2b
5 changed files with 27 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.README,v 1.45 1999/02/12 01:10:06 lukem Exp $ # $NetBSD: bsd.README,v 1.46 1999/02/12 12:38:44 lukem Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94 # @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the new make "include" files for the BSD This is the README file for the new make "include" files for the BSD
@ -87,6 +87,7 @@ MKLINKLIB If "no", act as "MKPICINSTALL=no MKPROFILE=no".
MKLINT If "no", don't build or install the lint libraries. MKLINT If "no", don't build or install the lint libraries.
MKMAN If "no", don't build or install the man or catman pages. MKMAN If "no", don't build or install the man or catman pages.
Also acts as "MKCATPAGES=no"
MKNLS If "no", don't build or install the NLS files. MKNLS If "no", don't build or install the NLS files.
@ -98,7 +99,7 @@ MKPICINSTALL If "no", don't install the *_pic.a libraries.
MKPROFILE If "no", don't build or install the profiling libraries. MKPROFILE If "no", don't build or install the profiling libraries.
MKSHARE If "no", act as "MKDOC=no MKMAN=no MKNLS=no". MKSHARE If "no", act as "MKCATPAGES=no MKDOC=no MKMAN=no MKNLS=no".
I.e, don't build documentation, info pages, man pages, I.e, don't build documentation, info pages, man pages,
NLS files, etc. NLS files, etc.

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.lib.mk,v 1.148 1999/02/12 01:10:07 lukem Exp $ # $NetBSD: bsd.lib.mk,v 1.149 1999/02/12 12:38:45 lukem Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.if !target(__initialized__) .if !target(__initialized__)
@ -185,7 +185,7 @@ _LIBS=lib${LIB}.a
_LIBS= _LIBS=
.endif .endif
.if ${MKPROFILE} != "no" && ${MKLINKLIB} != "no" .if ${MKPROFILE} != "no"
_LIBS+=lib${LIB}_p.a _LIBS+=lib${LIB}_p.a
.endif .endif
@ -287,7 +287,7 @@ ${DESTDIR}${LIBDIR}/lib${LIB}.a: .MADE
${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LIB}.a __archiveinstall ${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LIB}.a __archiveinstall
.endif .endif
.if ${MKPROFILE} != "no" && ${MKLINKLIB} != "no" .if ${MKPROFILE} != "no"
libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
.if !defined(UPDATE) .if !defined(UPDATE)
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
@ -300,7 +300,7 @@ ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: .MADE
${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${LIB}_p.a __archiveinstall ${DESTDIR}${LIBDIR}/lib${LIB}_p.a: lib${LIB}_p.a __archiveinstall
.endif .endif
.if ${MKPIC} != "no" && ${MKPICINSTALL} != "no" && ${MKLINKLIB} != "no" .if ${MKPIC} != "no" && ${MKPICINSTALL} != "no"
libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a
.if !defined(UPDATE) .if !defined(UPDATE)
.PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a .PHONY: ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.man.mk,v 1.43 1999/02/12 01:10:07 lukem Exp $ # $NetBSD: bsd.man.mk,v 1.44 1999/02/12 12:38:45 lukem Exp $
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93 # @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
.if !target(__initialized__) .if !target(__initialized__)
@ -12,7 +12,7 @@ __initialized__:
.endif .endif
.PHONY: catinstall maninstall catpages manpages catlinks manlinks cleanman .PHONY: catinstall maninstall catpages manpages catlinks manlinks cleanman
.if ${MKMAN} != "no" && ${MKSHARE} != "no" .if ${MKMAN} != "no"
realinstall: ${MANINSTALL} realinstall: ${MANINSTALL}
.endif .endif
cleandir distclean: cleanman cleandir distclean: cleanman
@ -148,7 +148,7 @@ manlinks: manpages
.endif .endif
.if defined(CATPAGES) .if defined(CATPAGES)
.if ${MKMAN} != "no" && ${MKSHARE} != "no" && ${MKCATPAGES} != "no" .if ${MKCATPAGES} != "no"
all: ${CATPAGES} all: ${CATPAGES}
.else .else
all: all:

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.nls.mk,v 1.16 1999/02/12 01:10:07 lukem Exp $ # $NetBSD: bsd.nls.mk,v 1.17 1999/02/12 12:38:45 lukem Exp $
.if !target(__initialized__) .if !target(__initialized__)
__initialized__: __initialized__:
@ -9,7 +9,7 @@ __initialized__:
.MAIN: all .MAIN: all
.endif .endif
.PHONY: cleannls nlsinstall .PHONY: cleannls nlsinstall
.if ${MKNLS} != "no" && ${MKSHARE} != "no" .if ${MKNLS} != "no"
realinstall: nlsinstall realinstall: nlsinstall
.endif .endif
cleandir distclean: cleannls cleandir distclean: cleannls
@ -33,7 +33,7 @@ NLSNAME=lib${LIB}
.endif .endif
.if defined(NLSALL) .if defined(NLSALL)
.if ${MKNLS} != "no" && ${MKSHARE} != "no" .if ${MKNLS} != "no"
all: ${NLSALL} all: ${NLSALL}
.endif .endif

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.116 1999/02/12 01:10:07 lukem Exp $ # $NetBSD: bsd.own.mk,v 1.117 1999/02/12 12:38:45 lukem Exp $
.if !defined(_BSD_OWN_MK_) .if !defined(_BSD_OWN_MK_)
_BSD_OWN_MK_=1 _BSD_OWN_MK_=1
@ -186,6 +186,10 @@ MKLINKLIB=no
.else .else
MKLINKLIB?=yes MKLINKLIB?=yes
.endif .endif
.if ${MKLINKLIB} == "no"
MKPICINSTALL=no
MKPROFILE=no
.endif
.if defined(NOLINT) .if defined(NOLINT)
MKLINT=no MKLINT=no
@ -198,6 +202,9 @@ MKMAN=no
.else .else
MKMAN?=yes MKMAN?=yes
.endif .endif
.if ${MKMAN} == "no"
MKCATPAGES=no
.endif
.if defined(NONLS) .if defined(NONLS)
MKNLS=no MKNLS=no
@ -234,6 +241,12 @@ MKSHARE=no
.else .else
MKSHARE?=yes MKSHARE?=yes
.endif .endif
.if ${MKSHARE} == "no"
MKCATPAGES=no
MKDOC=no
MKMAN=no
MKNLS=no
.endif
.endif # _BSD_OWN_MK_ .endif # _BSD_OWN_MK_