aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mk/bsd.port.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index f639091c71db..404a93666670 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.206 1996/06/13 06:03:39 asami Exp $
+# $Id: bsd.port.mk,v 1.207 1996/06/19 01:04:23 jkh Exp $
#
# Please view me with 4 column tabs!
@@ -239,9 +239,9 @@ obj:
cleandir:
@${DO_NADA}
.else
-cleandir:
- @rm -rf ${WRKDIR}/${DISTNAME}
- @rm -f ${WRKDIR}/.*_done
+cleandir: clean
+ @if [ "${WRKDIR}" != "${.CURDIR}" ]; then ${RM} -rf ${WRKDIR}/; fi
+ @rm -f ${.CURDIR}/obj
.endif
.endif