version 1.105, 2003/05/25 12:34:27 |
version 1.106, 2003/05/26 06:35:17 |
Line 667 validatemakeparams() |
|
Line 667 validatemakeparams() |
|
exit 1 |
exit 1 |
fi |
fi |
|
|
# If TOOLDIR isn't already set, make objdirs in "tools" in case the |
if [ "${MKOBJDIRS}" != "no" ]; then |
# default setting from <bsd.own.mk> is used. |
# If setting -M or -O to the root of an obj dir, make sure |
# |
# the base directory is made before continuing as <bsd.own.mk> |
if [ -z "${TOOLDIR}" ] && [ "${MKOBJDIRS}" != "no" ]; then |
# will need this to pick up _SRC_TOP_OBJ_ |
|
# |
|
if [ ! -z "${makeobjdir}" ]; then |
|
${runcmd} mkdir -p "${makeobjdir}" |
|
fi |
|
|
|
# make obj in tools to ensure that the objdir for the top-level |
|
# of the source tree and for "tools" is available, in case the |
|
# default TOOLDIR setting from <bsd.own.mk> is used, or the |
|
# build.sh default DESTDIR and RELEASEDIR is to be used. |
|
# |
${runcmd} cd tools |
${runcmd} cd tools |
${runcmd} "${make}" -m ${TOP}/share/mk obj NOSUBDIR= || |
${runcmd} "${make}" -m ${TOP}/share/mk obj NOSUBDIR= || |
bomb "Failed to make obj in tools" |
bomb "Failed to make obj in tools" |
${runcmd} cd "${TOP}" |
${runcmd} cd "${TOP}" |
fi |
fi |
|
|
# If setting -M or -O to root an obj dir make sure the base directory |
|
# is made before continuing as bsd.own.mk will need this to pick up |
|
# _SRC_TOP_OBJ_ |
|
# |
|
if [ "${MKOBJDIRS}" != "no" ] && [ ! -z "${makeobjdir}" ]; then |
|
${runcmd} mkdir -p "${makeobjdir}" |
|
fi |
|
|
|
statusmsg "MACHINE: ${MACHINE}" |
statusmsg "MACHINE: ${MACHINE}" |
statusmsg "MACHINE_ARCH: ${MACHINE_ARCH}" |
statusmsg "MACHINE_ARCH: ${MACHINE_ARCH}" |
|
|