diff options
-rw-r--r-- | share/mk/bsd.obj.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index db3c2ff..89e56ab8 100644 --- a/share/mk/bsd.obj.mk +++ b/share/mk/bsd.obj.mk @@ -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; \ |