aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-06-19 09:26:18 +0800
committerjkh <jkh@FreeBSD.org>1996-06-19 09:26:18 +0800
commitadbc00ae4d52fceddbfde346fd2d30d5663f8c8c (patch)
treebe145c6dc94bf5fccaaef9a9ed38bbe711726775 /Mk/bsd.port.mk
parent0fcf57c3b3e1a7ff2dd9fa0ac272e2ef6a92a1e3 (diff)
downloadfreebsd-ports-gnome-adbc00ae4d52fceddbfde346fd2d30d5663f8c8c.tar.gz
freebsd-ports-gnome-adbc00ae4d52fceddbfde346fd2d30d5663f8c8c.tar.zst
freebsd-ports-gnome-adbc00ae4d52fceddbfde346fd2d30d5663f8c8c.zip
Ok, now cleandir: is correct.
Diffstat (limited to 'Mk/bsd.port.mk')
-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