Fix the fix in rev.1.34.

Makes `cleandir' DTRT if MAKEOBJDIRPREFIX set and not empty,
like in `buildworld' case.
This commit is contained in:
ru 2001-04-23 14:47:40 +00:00
parent e01ec964a3
commit 0055fbf663

View File

@ -97,7 +97,7 @@ whereobj:
.endif
cleanobj:
@if [ -z "${MAKEOBJDIRPREFIX}" -a -d ${CANONICALOBJDIR}/ ]; then \
@if [ "${CANONICALOBJDIR}" != "${.CURDIR}" -a -d ${CANONICALOBJDIR}/ ]; then \
rm -rf ${CANONICALOBJDIR}; \
else \
cd ${.CURDIR} && ${MAKE} clean cleandepend; \