aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-11-10 02:09:33 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-11-10 02:09:33 +0000
commitfa65e3a53d378ff5a6d3746ac65c2247b401c04c (patch)
treef22c7de18d72d845faf0eadacb34cd6547eff233 /Makefile.inc1
parent40a770116cc3c2131d52955906af4daea8f0b89a (diff)
Notes
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc13
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 2bf120c5312e..c5c176099973 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2776,7 +2776,8 @@ BW_CANONICALOBJDIR:=${OBJROOT}
.endif
.endif
cleanworld cleanuniverse: .PHONY
-.if !empty(BW_CANONICALOBJDIR) && exists(${BW_CANONICALOBJDIR})
+.if !empty(BW_CANONICALOBJDIR) && exists(${BW_CANONICALOBJDIR}) && \
+ ${.CURDIR:tA} != ${BW_CANONICALOBJDIR:tA}
-rm -rf ${BW_CANONICALOBJDIR}*
-chflags -R 0 ${BW_CANONICALOBJDIR}
rm -rf ${BW_CANONICALOBJDIR}*