... and do it make(1) way.

This commit is contained in:
Ruslan Ermilov 2001-04-26 11:14:50 +00:00
parent c27ec88714
commit d79f28bba4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76021

View File

@ -97,11 +97,11 @@ whereobj:
.endif
cleanobj:
@if [ "${CANONICALOBJDIR}" != "${.CURDIR}" -a -d ${CANONICALOBJDIR}/ ]; then \
rm -rf ${CANONICALOBJDIR}; \
else \
cd ${.CURDIR} && ${MAKE} clean cleandepend; \
fi
.if ${CANONICALOBJDIR} != ${.CURDIR} && exists(${CANONICALOBJDIR}/)
@rm -rf ${CANONICALOBJDIR}
.else
@cd ${.CURDIR} && ${MAKE} clean cleandepend
.endif
@if [ -h ${.CURDIR}/obj ]; then rm -f ${.CURDIR}/obj; fi
.if !target(clean)