diff options
author | ats <ats@FreeBSD.org> | 1994-11-21 10:30:37 +0000 |
---|---|---|
committer | ats <ats@FreeBSD.org> | 1994-11-21 10:30:37 +0000 |
commit | 7cdf456513a268ce97769ef16ebd8142f4498f87 (patch) | |
tree | 69ac0d833ceecdebdb5ef82288ea4d38fef90c22 | |
parent | f6be70e1e66bc997efc95276dcd611dfe25135b4 (diff) | |
download | FreeBSD-ports-7cdf456513a268ce97769ef16ebd8142f4498f87.zip FreeBSD-ports-7cdf456513a268ce97769ef16ebd8142f4498f87.tar.gz |
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 :-).
-rw-r--r-- | Mk/bsd.port.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index ec59412..dab206b 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. |