summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorAndreas Schulz <ats@FreeBSD.org>1994-11-21 10:30:37 +0000
committerAndreas Schulz <ats@FreeBSD.org>1994-11-21 10:30:37 +0000
commit996ec6102096683dbaccfc62dd92a020256d1a98 (patch)
treecf2fecbe8d74c5365ce193f4e665ca613dac8e9c /Mk/bsd.port.mk
parent#define MAILER "/usr/sbin/sendmail" (diff)
Don't use a rm -rf WORKDIR if NO_WRKDIR is defined. You have a good chance
to blow away your current dir, because WRKDIR == CURDIR. This should help tcpblast to not blow away itself in the clean target :-).
Notes
Notes: svn path=/head/; revision=441
Diffstat (limited to 'Mk/bsd.port.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.