diff options
author | ru <ru@FreeBSD.org> | 2001-04-23 14:47:40 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-04-23 14:47:40 +0000 |
commit | 2816709a18843f4a107e2c67abbbbf2cf21c1fa1 (patch) | |
tree | eeb3219daded28518ee5a51b0e1e4a1c3a79db61 /share | |
parent | b6dd98ae892233907380d386f9070712168f5115 (diff) | |
download | FreeBSD-src-2816709a18843f4a107e2c67abbbbf2cf21c1fa1.zip FreeBSD-src-2816709a18843f4a107e2c67abbbbf2cf21c1fa1.tar.gz |
Fix the fix in rev.1.34.
Makes `cleandir' DTRT if MAKEOBJDIRPREFIX set and not empty,
like in `buildworld' case.
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.obj.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index db3c2ff..89e56ab8 100644 --- a/share/mk/bsd.obj.mk +++ b/share/mk/bsd.obj.mk @@ -97,7 +97,7 @@ whereobj: .endif cleanobj: - @if [ -z "${MAKEOBJDIRPREFIX}" -a -d ${CANONICALOBJDIR}/ ]; then \ + @if [ "${CANONICALOBJDIR}" != "${.CURDIR}" -a -d ${CANONICALOBJDIR}/ ]; then \ rm -rf ${CANONICALOBJDIR}; \ else \ cd ${.CURDIR} && ${MAKE} clean cleandepend; \ |