summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-02-01 00:43:13 +0000
committertron <tron@pkgsrc.org>1999-02-01 00:43:13 +0000
commitf3abb7c3eccd57784cf99b15fb8f6636858973b5 (patch)
tree403fa1430cd2dc8798431fd58c2eef103c3d2b89 /mk
parenta82b6ab483a217c98a0d663b5be48e216d8b4700 (diff)
downloadpkgsrc-f3abb7c3eccd57784cf99b15fb8f6636858973b5.tar.gz
Make "distclean" target work for packages without distribution and
patch files, e.g. meta packages.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 9777ea96e18..7bcc2d119ea 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.206 1999/01/30 23:18:59 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.207 1999/02/01 00:43:13 tron Exp $
#
# This file is in the public domain.
#
@@ -1428,7 +1428,8 @@ distclean: pre-distclean clean
@${ECHO_MSG} "===> Dist cleaning for ${PKGNAME}"
@(if [ -d ${_DISTDIR} ]; then \
cd ${_DISTDIR} && \
- ${RM} -f ${DISTFILES} ${PATCHFILES}; \
+ test -z "${DISTFILES}" || ${RM} -f ${DISTFILES}; \
+ test -z "${PATCHFILES}" || ${RM} -f ${PATCHFILES}; \
fi)
.if defined(DIST_SUBDIR)
-@${RMDIR} ${_DISTDIR}