version 1.114, 2000/05/06 07:53:53 |
version 1.119, 2000/08/05 10:17:35 |
|
|
# 'make build'. It defaults to 1. |
# 'make build'. It defaults to 1. |
# UPDATE will avoid a `make cleandir' at the start of `make build', |
# UPDATE will avoid a `make cleandir' at the start of `make build', |
# as well as having the effects listed in /usr/share/mk/bsd.README. |
# as well as having the effects listed in /usr/share/mk/bsd.README. |
|
# NOCLEANDIR will avoid a `make cleandir' at the start of `make build', |
|
# but without having the effects listed in /usr/share/mk/bsd.README. |
|
# NOINCLUDES will avoid the `make includes' usually done by `make build'. |
# |
# |
# Targets: |
# Targets: |
# build: builds a full release of netbsd in DESTDIR. If BUILD_DONE is |
# build: builds a full release of netbsd in DESTDIR. If BUILD_DONE is |
|
|
# more information on this.) |
# more information on this.) |
# snapshot: a synonym for release. |
# snapshot: a synonym for release. |
|
|
SRCTOP=. |
.include <bsd.own.mk> |
.include <bsd.crypto.mk> # for configuration variables. |
|
|
|
.if defined(CRYPTOPATH) |
|
.sinclude "${CRYPTOPATH}/Makefile.frag" |
|
.endif |
|
|
|
MKOBJDIRS ?= no |
MKOBJDIRS ?= no |
HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo |
HAVE_EGCS!= ${CXX} --version | egrep "^(2\.[89]|egcs)" ; echo |
|
|
.if defined(NBUILDJOBS) |
.if defined(NBUILDJOBS) |
_J= -j${NBUILDJOBS} |
_J= -j${NBUILDJOBS} |
Line 123 build: buildmsg beforeinstall |
|
Line 121 build: buildmsg beforeinstall |
|
(cd ${.CURDIR}/share/mk && ${MAKE} install) |
(cd ${.CURDIR}/share/mk && ${MAKE} install) |
.endif |
.endif |
.if !defined(UPDATE) && !defined(NOCLEANDIR) |
.if !defined(UPDATE) && !defined(NOCLEANDIR) |
${MAKE} ${_M} cleandir |
${MAKE} ${_J} ${_M} cleandir |
.endif |
.endif |
.if ${MKOBJDIRS} != "no" |
.if ${MKOBJDIRS} != "no" |
${MAKE} obj |
${MAKE} ${_M} obj |
.endif |
.endif |
.if empty(HAVE_GCC28) |
.if empty(HAVE_EGCS) |
.if defined(DESTDIR) |
.if defined(DESTDIR) |
@echo "*** CAPUTE!" |
@echo "*** CAPUTE!" |
@echo " You attempted to compile the world without egcs. You must" |
@echo " You attempted to compile the world without egcs. You must" |
Line 152 build: buildmsg beforeinstall |
|
Line 150 build: buildmsg beforeinstall |
|
(cd ${.CURDIR}/gnu/lib && \ |
(cd ${.CURDIR}/gnu/lib && \ |
${MAKE} ${_M} ${_J} MKSHARE=no dependall && \ |
${MAKE} ${_M} ${_J} MKSHARE=no dependall && \ |
${MAKE} ${_M} MKSHARE=no install) |
${MAKE} ${_M} MKSHARE=no install) |
.if target(cryptobuild) |
|
${MAKE} ${_M} ${_J} cryptobuild |
|
.endif |
|
${MAKE} ${_M} ${_J} dependall && ${MAKE} ${_M} _BUILD= install |
${MAKE} ${_M} ${_J} dependall && ${MAKE} ${_M} _BUILD= install |
.if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM) |
.if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM) |
(cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_M} ${_J} _SLAVE_BUILD= build) |
(cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_M} ${_J} _SLAVE_BUILD= build) |