version 1.260, 2008/10/22 17:37:16 |
version 1.261, 2008/10/25 15:03:44 |
|
|
# |
# |
# Targets invoked by `make build,' in order: |
# Targets invoked by `make build,' in order: |
# cleandir: cleans the tree. |
# cleandir: cleans the tree. |
|
# do-top-obj: creates the top level object directory. |
# do-tools-obj: creates object directories for the host toolchain. |
# do-tools-obj: creates object directories for the host toolchain. |
# do-tools: builds host toolchain. |
# do-tools: builds host toolchain. |
# obj: creates object directories. |
# obj: creates object directories. |
|
|
.endfor |
.endfor |
.endif |
.endif |
|
|
_SUBDIR= tools lib include gnu external bin games libexec sbin usr.bin |
|
_SUBDIR+= usr.sbin share rescue sys etc tests .WAIT distrib regress |
|
|
|
# |
# |
# Weed out directories that don't exist. |
# _SUBDIR is used to set SUBDIR, after removing directories that have |
|
# BUILD_${dir}=no, or that have no ${dir}/Makefile. |
# |
# |
|
_SUBDIR= tools lib include gnu external bin games libexec sbin usr.bin |
|
_SUBDIR+= usr.sbin share rescue sys etc tests .WAIT distrib regress |
|
|
.for dir in ${_SUBDIR} |
.for dir in ${_SUBDIR} |
.if ("${dir}" == ".WAIT") || exists(${dir}/Makefile) && (${BUILD_${dir}:Uyes} != "no") |
.if "${dir}" == ".WAIT" \ |
|
|| (${BUILD_${dir}:Uyes} != "no" && exists(${dir}/Makefile)) |
SUBDIR+= ${dir} |
SUBDIR+= ${dir} |
.endif |
.endif |
.endfor |
.endfor |
Line 197 BUILDTARGETS+= check-tools |
|
Line 199 BUILDTARGETS+= check-tools |
|
.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) |
.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) |
BUILDTARGETS+= cleandir |
BUILDTARGETS+= cleandir |
.endif |
.endif |
.if ${USETOOLS} == "yes" |
.if ${MKOBJDIRS} != "no" |
|
BUILDTARGETS+= do-top-obj |
|
.endif |
|
.if ${USETOOLS} == "yes" # { |
.if ${MKOBJDIRS} != "no" |
.if ${MKOBJDIRS} != "no" |
BUILDTARGETS+= do-tools-obj |
BUILDTARGETS+= do-tools-obj |
.endif |
.endif |
BUILDTARGETS+= do-tools |
BUILDTARGETS+= do-tools |
.endif |
.endif # USETOOLS # } |
.if ${MKOBJDIRS} != "no" |
.if ${MKOBJDIRS} != "no" |
BUILDTARGETS+= obj |
BUILDTARGETS+= obj |
.endif |
.endif |
Line 387 do-${dir:S/\//-/g}: .PHONY .MAKE |
|
Line 392 do-${dir:S/\//-/g}: .PHONY .MAKE |
|
.endfor |
.endfor |
.endfor |
.endfor |
|
|
|
do-top-obj: .PHONY .MAKE |
|
${MAKEDIRTARGET} . obj NOSUBDIR= |
|
|
do-tools-obj: .PHONY .MAKE |
do-tools-obj: .PHONY .MAKE |
${MAKEDIRTARGET} tools obj |
${MAKEDIRTARGET} tools obj |
|
|