diff options
author | green <green@FreeBSD.org> | 2004-01-02 05:05:48 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2004-01-02 05:05:48 +0000 |
commit | 7555fe73fd4c6de4abe462f0381dbf083cc8dc63 (patch) | |
tree | 36e4b3da90b62b4421c393db7a7e65930d9ccf00 /share/mk | |
parent | 29f66743387caea20d00f8ca18fe77dbdc30b467 (diff) | |
download | FreeBSD-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.mk | 4 |
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 |