diff options
| author | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-11-10 02:09:33 +0000 |
|---|---|---|
| committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-11-10 02:09:33 +0000 |
| commit | fa65e3a53d378ff5a6d3746ac65c2247b401c04c (patch) | |
| tree | f22c7de18d72d845faf0eadacb34cd6547eff233 /Makefile.inc1 | |
| parent | 40a770116cc3c2131d52955906af4daea8f0b89a (diff) | |
Notes
Diffstat (limited to 'Makefile.inc1')
| -rw-r--r-- | Makefile.inc1 | 3 |
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}* |
