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:
Ruslan Ermilov 2001-04-23 14:47:40 +00:00
parent 60f6f55742
commit 7841ac2fa9

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; \