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 :-).
This commit is contained in:
Andreas Schulz 1994-11-21 10:30:37 +00:00
parent c3a9ff65c8
commit 0512285fe2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4751

View File

@ -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.