Re-add intermediate dependall/install targets (do-lib-csu, do-lib,

do-gnu-lib) to permit restarting broken builds in the middle.
This commit is contained in:
tv 2001-10-24 03:21:20 +00:00
parent f2fc1b7b7d
commit ceb7997de9
1 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.142 2001/10/24 02:45:34 tv Exp $ # $NetBSD: Makefile,v 1.143 2001/10/24 03:21:20 tv Exp $
# This is the top-level makefile for building NetBSD. For an outline of # This is the top-level makefile for building NetBSD. For an outline of
# how to build a snapshot or release, as well as other release engineering # how to build a snapshot or release, as well as other release engineering
@ -49,6 +49,9 @@
# do-make-tools: builds host toolchain. # do-make-tools: builds host toolchain.
# do-distrib-dirs: creates the distribution directories. # do-distrib-dirs: creates the distribution directories.
# includes: installs include files. # includes: installs include files.
# do-lib-csu: builds and installs prerequisites from lib/csu.
# do-lib: builds and installs prerequisites from lib.
# do-gnu-lib: builds and installs prerequisites from gnu/lib.
# do-build: builds and installs the entire system. # do-build: builds and installs the entire system.
.include "${.CURDIR}/share/mk/bsd.own.mk" .include "${.CURDIR}/share/mk/bsd.own.mk"
@ -113,7 +116,7 @@ BUILDTARGETS+= do-distrib-dirs
.if !defined(NOINCLUDES) .if !defined(NOINCLUDES)
BUILDTARGETS+= includes BUILDTARGETS+= includes
.endif .endif
BUILDTARGETS+= do-build BUILDTARGETS+= do-lib-csu do-lib do-gnu-lib do-build
# Enforce proper ordering of some rules. # Enforce proper ordering of some rules.
@ -145,13 +148,15 @@ do-make-tools:
do-distrib-dirs: do-distrib-dirs:
cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs
do-build:
.for dir in lib/csu lib gnu/lib .for dir in lib/csu lib gnu/lib
do-${dir:S/\//-/}:
.for targ in dependall install .for targ in dependall install
cd ${.CURDIR}/${dir} && \ cd ${.CURDIR}/${dir} && \
${MAKE} ${_M} ${_J} MKSHARE=no MKLINT=no ${targ} ${MAKE} ${_M} ${_J} MKSHARE=no MKLINT=no ${targ}
.endfor .endfor
.endfor .endfor
do-build:
${MAKE} ${_M} ${_J} dependall ${MAKE} ${_M} ${_J} dependall
${MAKE} ${_M} ${_J} install ${MAKE} ${_M} ${_J} install