version 1.130, 2001/09/22 05:37:17 |
version 1.134, 2001/10/08 23:42:21 |
|
|
# |
# |
# Sub targets of `make build,' in order: |
# Sub targets of `make build,' in order: |
# buildstartmsg: displays the start time of the build. |
# buildstartmsg: displays the start time of the build. |
# beforeinstall: creates the distribution directories. |
# do-make-tools: builds host toolchain. |
|
# do-distrib-dirs: creates the distribution directories. |
# do-force-domestic: check's that FORCE_DOMESTIC isn't set (deprecated.) |
# do-force-domestic: check's that FORCE_DOMESTIC isn't set (deprecated.) |
# do-cleandir: cleans the tree. |
# do-cleandir: cleans the tree. |
# do-make-obj: creates object directories if required. |
# do-make-obj: creates object directories if required. |
# do-make-tools: builds host toolchain. |
|
# do-make-includes: install include files. |
# do-make-includes: install include files. |
# do-lib-csu: build & install startup object files. |
# do-lib-csu: build & install startup object files. |
# do-lib: build & install system libraries. |
# do-lib: build & install system libraries. |
|
|
# do-whatisdb: build & install the `whatis.db' man database. |
# do-whatisdb: build & install the `whatis.db' man database. |
# buildendmsg: displays the end time of the build. |
# buildendmsg: displays the end time of the build. |
|
|
.include <bsd.own.mk> |
.include "${.CURDIR}/share/mk/bsd.own.mk" |
|
|
MKOBJDIRS ?= no |
MKOBJDIRS ?= no |
|
|
Line 69 _J= -j${NBUILDJOBS} |
|
Line 69 _J= -j${NBUILDJOBS} |
|
|
|
SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys |
SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys |
.if make(cleandir) || make(obj) |
.if make(cleandir) || make(obj) |
SUBDIR+= distrib |
SUBDIR+= distrib tools |
.ifdef MAKEOBJDIRPREFIX |
.ifdef MAKEOBJDIRPREFIX |
SUBDIR+= etc |
SUBDIR+= etc |
.endif |
.endif |
|
|
@echo -n "Build finished at: " |
@echo -n "Build finished at: " |
@date |
@date |
|
|
beforeinstall: |
|
.ifndef NODISTRIBDIRS |
|
.ifndef DESTDIR |
|
(cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=/ distrib-dirs) |
|
.else |
|
(cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs) |
|
.endif |
|
.endif |
|
|
|
afterinstall: |
afterinstall: |
.if ${MKMAN} != "no" && !defined(_BUILD) |
.if ${MKMAN} != "no" && !defined(_BUILD) |
${MAKE} ${_M} whatis.db |
${MAKE} ${_M} whatis.db |
|
|
.else |
.else |
build: |
build: |
@${MAKE} ${_M} buildstartmsg |
@${MAKE} ${_M} buildstartmsg |
@${MAKE} ${_M} beforeinstall |
@${MAKE} ${_M} do-make-tools |
|
@${MAKE} ${_M} do-distrib-dirs |
@${MAKE} ${_M} do-force-domestic |
@${MAKE} ${_M} do-force-domestic |
@${MAKE} ${_M} do-cleandir |
@${MAKE} ${_M} do-cleandir |
@${MAKE} ${_M} do-make-obj |
@${MAKE} ${_M} do-make-obj |
@${MAKE} ${_M} do-make-tools |
|
@${MAKE} ${_M} do-make-includes |
@${MAKE} ${_M} do-make-includes |
@${MAKE} ${_M} do-lib-csu |
@${MAKE} ${_M} do-lib-csu |
@${MAKE} ${_M} do-lib |
@${MAKE} ${_M} do-lib |
|
|
@${MAKE} ${_M} buildendmsg |
@${MAKE} ${_M} buildendmsg |
.endif |
.endif |
|
|
|
do-make-tools: |
|
.if ${USETOOLS} != "no" |
|
.if ${MKOBJDIRS} != "no" |
|
cd ${.CURDIR}/tools && ${MAKE} ${_M} obj |
|
.endif |
|
cd ${.CURDIR}/tools && ${MAKE} ${_M} build |
|
.endif |
|
|
|
do-distrib-dirs: |
|
.ifndef NODISTRIBDIRS |
|
.ifndef DESTDIR |
|
(cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=/ distrib-dirs) |
|
.else |
|
(cd ${.CURDIR}/etc && ${MAKE} ${_M} DESTDIR=${DESTDIR} distrib-dirs) |
|
.endif |
|
.endif |
|
|
do-force-domestic: |
do-force-domestic: |
.if defined(FORCE_DOMESTIC) |
.if defined(FORCE_DOMESTIC) |
@echo '*** CAPUTE!' |
@echo '*** CAPUTE!' |
|
|
do-make-obj: |
do-make-obj: |
.if ${MKOBJDIRS} != "no" |
.if ${MKOBJDIRS} != "no" |
${MAKE} ${_J} ${_M} obj |
${MAKE} ${_J} ${_M} obj |
cd ${.CURDIR}/tools && ${MAKE} ${_M} obj |
|
.endif |
.endif |
|
|
do-make-tools: |
|
cd ${.CURDIR}/tools && ${MAKE} ${_M} build |
|
|
|
do-make-includes: |
do-make-includes: |
.if !defined(NOINCLUDES) |
.if !defined(NOINCLUDES) |
${MAKE} ${_M} includes |
${MAKE} ${_M} includes |
Line 211 includes-sbin includes-usr.sbin: |
|
Line 215 includes-sbin includes-usr.sbin: |
|
@false |
@false |
.endif |
.endif |
|
|
.include <bsd.subdir.mk> |
.include "${.CURDIR}/share/mk/bsd.subdir.mk" |
|
|
_M:= -m ${.CURDIR}/share/mk |
_M:= -m ${.CURDIR}/share/mk |