Do not bail out for cleanworld target just because
chflags is failed.
This commit is contained in:
parent
203345b0a4
commit
a7e0dd3928
4
Makefile
4
Makefile
@ -147,14 +147,14 @@ cleanworld:
|
|||||||
.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR}
|
.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR}
|
||||||
.if exists(${BW_CANONICALOBJDIR}/)
|
.if exists(${BW_CANONICALOBJDIR}/)
|
||||||
-rm -rf ${BW_CANONICALOBJDIR}/*
|
-rm -rf ${BW_CANONICALOBJDIR}/*
|
||||||
chflags -R 0 ${BW_CANONICALOBJDIR}
|
-chflags -R 0 ${BW_CANONICALOBJDIR}
|
||||||
rm -rf ${BW_CANONICALOBJDIR}/*
|
rm -rf ${BW_CANONICALOBJDIR}/*
|
||||||
.endif
|
.endif
|
||||||
# To be safe in this case, fall back to a 'make cleandir'
|
# To be safe in this case, fall back to a 'make cleandir'
|
||||||
${_+_}@cd ${.CURDIR}; ${_MAKE} cleandir
|
${_+_}@cd ${.CURDIR}; ${_MAKE} cleandir
|
||||||
.else
|
.else
|
||||||
-rm -rf ${.OBJDIR}/*
|
-rm -rf ${.OBJDIR}/*
|
||||||
chflags -R 0 ${.OBJDIR}
|
-chflags -R 0 ${.OBJDIR}
|
||||||
rm -rf ${.OBJDIR}/*
|
rm -rf ${.OBJDIR}/*
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user