version 1.287, 2011/08/08 22:15:42 |
version 1.298, 2012/08/15 12:50:12 |
|
|
# installworld: |
# installworld: |
# Install the distribution from DESTDIR to INSTALLWORLDDIR (which |
# Install the distribution from DESTDIR to INSTALLWORLDDIR (which |
# defaults to the root directory). Ensures that INSTALLWORLDDIR |
# defaults to the root directory). Ensures that INSTALLWORLDDIR |
# is the not root directory if cross compiling. |
# is not the root directory if cross compiling. |
# release: |
# release: |
# Does a `make distribution', and then tars up the DESTDIR files |
# Does a `make distribution', and then tars up the DESTDIR files |
# into ${RELEASEDIR}/${RELEASEMACHINEDIR}, in release(7) format. |
# into ${RELEASEDIR}/${RELEASEMACHINEDIR}, in release(7) format. |
|
|
# Create CD-ROM image with source in RELEASEDIR/iso. |
# Create CD-ROM image with source in RELEASEDIR/iso. |
# RELEASEDIR must already have been populated by |
# RELEASEDIR must already have been populated by |
# `make release sourcesets' or equivalent. |
# `make release sourcesets' or equivalent. |
|
# live-image: |
|
# Create bootable live image for emulators or USB stick etc. |
|
# in RELEASEDIR/liveimage. |
|
# RELEASEDIR must already have been populated by `make release' |
|
# or equivalent. |
|
# install-image: |
|
# Create bootable installation image for USB stick etc. |
|
# in RELEASEDIR/installimage. |
|
# RELEASEDIR must already have been populated by `make release' |
|
# or equivalent. |
# |
# |
# Targets invoked by `make build,' in order: |
# Targets invoked by `make build,' in order: |
# cleandir: cleans the tree. |
# cleandir: cleans the tree. |
Line 178 afterinstall: .PHONY .MAKE |
|
Line 188 afterinstall: .PHONY .MAKE |
|
.endif |
.endif |
|
|
_POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall |
_POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall |
|
_POSTINSTALL_ENV= \ |
|
AWK=${TOOL_AWK:Q} \ |
|
DB=${TOOL_DB:Q} \ |
|
HOST_SH=${HOST_SH:Q} \ |
|
MAKE=${MAKE:Q} \ |
|
PWD_MKDB=${TOOL_PWD_MKDB:Q} \ |
|
STAT=${TOOL_STAT:Q} |
|
|
postinstall-check: .PHONY |
postinstall-check: .PHONY |
@echo " === Post installation checks ===" |
@echo " === Post installation checks ===" |
AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi |
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi |
@echo " ================================" |
@echo " ================================" |
|
|
postinstall-fix: .NOTMAIN .PHONY |
postinstall-fix: .NOTMAIN .PHONY |
@echo " === Post installation fixes ===" |
@echo " === Post installation fixes ===" |
AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix |
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix |
@echo " ===============================" |
@echo " ===============================" |
|
|
postinstall-fix-obsolete: .NOTMAIN .PHONY |
postinstall-fix-obsolete: .NOTMAIN .PHONY |
@echo " === Removing obsolete files ===" |
@echo " === Removing obsolete files ===" |
AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete |
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete |
@echo " ===============================" |
@echo " ===============================" |
|
|
|
|
Line 246 BUILDTARGETS+= do-lib |
|
Line 263 BUILDTARGETS+= do-lib |
|
.if ${MKKMOD} != "no" |
.if ${MKKMOD} != "no" |
BUILDTARGETS+= do-sys-modules |
BUILDTARGETS+= do-sys-modules |
.endif |
.endif |
|
.if ${MKRUMP} != "no" |
BUILDTARGETS+= do-sys-rump-dev-lib do-sys-rump-fs-lib |
BUILDTARGETS+= do-sys-rump-dev-lib do-sys-rump-fs-lib |
BUILDTARGETS+= do-sys-rump-kern-lib do-sys-rump-net-lib |
BUILDTARGETS+= do-sys-rump-kern-lib do-sys-rump-net-lib |
|
.endif |
.if ${MKCOMPAT} != "no" |
.if ${MKCOMPAT} != "no" |
BUILDTARGETS+= do-compat-lib-csu |
BUILDTARGETS+= do-compat-lib-csu |
BUILDTARGETS+= do-compat-libgcc |
BUILDTARGETS+= do-compat-libgcc |
Line 360 installmodules: .PHONY .MAKE |
|
Line 379 installmodules: .PHONY .MAKE |
|
@false |
@false |
.endif |
.endif |
.endif |
.endif |
${MAKEDIRTARGET} sys/modules install DESTDIR=${INSTALLMODULESDIR:*/} |
${MAKEDIRTARGET} sys/modules install DESTDIR=${INSTALLMODULESDIR:U/} |
@echo "make ${.TARGET} started at: ${START_TIME}" |
@echo "make ${.TARGET} started at: ${START_TIME}" |
@printf "make ${.TARGET} finished at: " && date |
@printf "make ${.TARGET} finished at: " && date |
|
|
Line 402 iso-image-source: .PHONY |
|
Line 421 iso-image-source: .PHONY |
|
@printf "make ${.TARGET} finished at: " && date |
@printf "make ${.TARGET} finished at: " && date |
|
|
# |
# |
|
# Create bootable live images. |
|
# |
|
|
|
live-image: .PHONY |
|
${MAKEDIRTARGET} etc live-image |
|
@echo "make ${.TARGET} started at: ${START_TIME}" |
|
@printf "make ${.TARGET} finished at: " && date |
|
|
|
# |
|
# Create bootable installation images. |
|
# |
|
|
|
install-image: .PHONY |
|
${MAKEDIRTARGET} etc install-image |
|
@echo "make ${.TARGET} started at: ${START_TIME}" |
|
@printf "make ${.TARGET} finished at: " && date |
|
|
|
# |
# Special components of the "make build" process. |
# Special components of the "make build" process. |
# |
# |
|
|
Line 535 do-obsolete: .PHONY .MAKE |
|
Line 572 do-obsolete: .PHONY .MAKE |
|
# (Tells <bsd.subdir.mk> not to recurse for them.) |
# (Tells <bsd.subdir.mk> not to recurse for them.) |
# |
# |
|
|
.for dir in bin etc distrib games libexec regress sbin usr.sbin tools |
.for dir in bin etc distrib games libexec regress sbin usr.bin usr.sbin tools |
includes-${dir}: .PHONY |
includes-${dir}: .PHONY |
@true |
@true |
.endfor |
.endfor |
Line 556 dependall-distrib depend-distrib all-dis |
|
Line 593 dependall-distrib depend-distrib all-dis |
|
.include <bsd.kernobj.mk> |
.include <bsd.kernobj.mk> |
.include <bsd.subdir.mk> |
.include <bsd.subdir.mk> |
|
|
build-docs: .PHONY ${.CURDIR}/BUILDING |
|
${.CURDIR}/BUILDING: doc/BUILDING.mdoc |
|
${_MKMSG_CREATE} ${.TARGET} |
|
${TOOL_GROFF} -mdoc -Tascii -P-bou $> >$@ |
|
|
|
|
|
# |
# |
# Display current make(1) parameters |
# Display current make(1) parameters |
# |
# |