summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2004-01-02 05:05:48 +0000
committergreen <green@FreeBSD.org>2004-01-02 05:05:48 +0000
commit7555fe73fd4c6de4abe462f0381dbf083cc8dc63 (patch)
tree36e4b3da90b62b4421c393db7a7e65930d9ccf00 /share/mk
parent29f66743387caea20d00f8ca18fe77dbdc30b467 (diff)
downloadFreeBSD-src-7555fe73fd4c6de4abe462f0381dbf083cc8dc63.zip
FreeBSD-src-7555fe73fd4c6de4abe462f0381dbf083cc8dc63.tar.gz
Fix a very corner case when you want to make cleandir SUBDIRs which
are built using a ${MAKE} that's not just "make". Test by: make universe (followed by cleandirs)
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.obj.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk
index 195b578..e3ff52b 100644
--- a/share/mk/bsd.obj.mk
+++ b/share/mk/bsd.obj.mk
@@ -108,11 +108,11 @@ whereobj:
@echo ${.OBJDIR}
.endif
-cleanobj:
.if ${CANONICALOBJDIR} != ${.CURDIR} && exists(${CANONICALOBJDIR}/)
+cleanobj:
@rm -rf ${CANONICALOBJDIR}
.else
- @cd ${.CURDIR} && ${MAKE} clean cleandepend
+cleanobj: clean cleandepend
.endif
@if [ -L ${.CURDIR}/obj ]; then rm -f ${.CURDIR}/obj; fi
OpenPOWER on IntegriCloud