summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index ec594125de5c..dab206b79956 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.71 1994/11/17 10:07:45 jkh Exp $
+# $Id: bsd.port.mk,v 1.72 1994/11/17 15:46:27 jkh Exp $
#
# Please view me with 4 column tabs!
@@ -473,8 +473,10 @@ clean: pre-clean
@echo "===> Cleaning for ${DISTNAME}"
@rm -f ${EXTRACT_COOKIE} ${CONFIGURE_COOKIE} ${INSTALL_COOKIE} \
${BUILD_COOKIE} ${PATCH_COOKIE}
+.if !defined(NO_WRKDIR)
@rm -rf ${WRKDIR}
.endif
+.endif
# No pre-targets for depend or tags. It would be silly.