diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index 195b5782dce9..e3ff52b556d6 100644 --- a/share/mk/bsd.obj.mk +++ b/share/mk/bsd.obj.mk @@ -108,11 +108,11 @@ whereobj: @echo ${.OBJDIR} .endif -cleanobj: .if ${CANONICALOBJDIR} != ${.CURDIR} && exists(${CANONICALOBJDIR}/) +cleanobj: @rm -rf ${CANONICALOBJDIR} .else - @cd ${.CURDIR} && ${MAKE} clean cleandepend +cleanobj: clean cleandepend .endif @if [ -L ${.CURDIR}/obj ]; then rm -f ${.CURDIR}/obj; fi