Fix a very corner case when you want to make cleandir SUBDIRs which

are built using a ${MAKE} that's not just "make".

Test by:	make universe (followed by cleandirs)
This commit is contained in:
Brian Feldman 2004-01-02 05:05:48 +00:00
parent f07cc658a4
commit 2fc197082f

View File

@ -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