summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-08-05 23:48:58 +0000
committerru <ru@FreeBSD.org>2005-08-05 23:48:58 +0000
commit0680d8984305ea82d1de2f787fe01af993054ac9 (patch)
tree8c90605b84e032fff3535dfccebfb1980d87f052
parent0c7478173c04ee05edc6f162c406af8897da1221 (diff)
downloadFreeBSD-src-0680d8984305ea82d1de2f787fe01af993054ac9.zip
FreeBSD-src-0680d8984305ea82d1de2f787fe01af993054ac9.tar.gz
- clean ${LIB32TMP} in _worldtmp
- clean ${OBJTREE}/lib32 in _cleanobj - ensure that ${WORLDTMP} exists in build32
-rw-r--r--Makefile.inc17
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 0f99eac..c7a52f2 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -274,6 +274,9 @@ _worldtmp:
@echo "--------------------------------------------------------------"
.if !defined(NO_CLEAN)
rm -rf ${WORLDTMP}
+.if ${TARGET_ARCH} == "amd64"
+ rm -rf ${LIB32TMP}
+.endif
.else
rm -rf ${WORLDTMP}/legacy/usr/include
# XXX - These two can depend on any header file.
@@ -332,6 +335,9 @@ _cleanobj:
@echo ">>> stage 2.1: cleaning up the object tree"
@echo "--------------------------------------------------------------"
${_+_}cd ${.CURDIR}; ${WMAKE} ${CLEANDIR:S/^/par-/}
+.if ${TARGET_ARCH} == "amd64"
+ rm -rf ${OBJTREE}/lib32
+.endif
.endif
_obj:
@echo
@@ -391,6 +397,7 @@ build32:
.endfor
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
-p ${LIB32TMP}/usr/include >/dev/null
+ mkdir -p ${WORLDTMP}
ln -sf ${.CURDIR}/sys ${WORLDTMP}
.if !defined(NO_KERBEROS) && !defined(NO_CRYPT) && !defined(NO_OPENSSL)
.for _t in obj depend all
OpenPOWER on IntegriCloud