Ignore errors from rm -rf to support high -j builds. This is, at best,

a kludge. However, it also effectively works around the issues for
high -j builds on systems that do not have the rm fixes.

A better fix would be to rmdir here, and fix the places where we're
sloppy and not list all the files we create in CLEANFILES, should
anybody have the time to chase them all to ground.
This commit is contained in:
Warner Losh 2014-11-06 17:19:41 +00:00
parent 2736ae9f8c
commit bd808d4133
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274186

View File

@ -112,7 +112,7 @@ whereobj:
.if ${CANONICALOBJDIR} != ${.CURDIR} && exists(${CANONICALOBJDIR}/)
cleanobj:
@rm -rf ${CANONICALOBJDIR}
@-rm -rf ${CANONICALOBJDIR}
.else
cleanobj: clean cleandepend
.endif
@ -130,7 +130,7 @@ clean:
rm -f ${CLEANFILES}
.endif
.if defined(CLEANDIRS) && !empty(CLEANDIRS)
rm -rf ${CLEANDIRS}
-rm -rf ${CLEANDIRS}
.endif
.endif