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:
parent
f07cc658a4
commit
2fc197082f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user