summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/fetch/distclean.mk21
1 files changed, 11 insertions, 10 deletions
diff --git a/mk/fetch/distclean.mk b/mk/fetch/distclean.mk
index c0967710ac1..da94a6f9d47 100644
--- a/mk/fetch/distclean.mk
+++ b/mk/fetch/distclean.mk
@@ -1,4 +1,10 @@
-# $NetBSD: distclean.mk,v 1.3 2006/07/18 22:41:06 jlam Exp $
+# $NetBSD: distclean.mk,v 1.4 2007/10/13 13:49:19 rillig Exp $
+#
+# === make targets for pkgsrc users ===
+#
+# distclean:
+# Removes the distfiles of the current package.
+#
.PHONY: pre-distclean
.if !target(pre-distclean)
@@ -10,16 +16,11 @@ pre-distclean:
.if !target(distclean)
distclean: pre-distclean clean
@${PHASE_MSG} "Dist cleaning for ${PKGNAME}"
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${TEST} -d ${_DISTDIR} || exit 0; \
+ ${RUN} [ -d ${_DISTDIR} ] || exit 0; \
cd ${_DISTDIR}; \
- ${RM} -f ${ALLFILES}; \
- ${RM} -f ${ALLFILES:S/$/.pkgsrc.resume/}
+ ${RM} -f ${ALLFILES} ${ALLFILES:S/$/.pkgsrc.resume/}
. if defined(DIST_SUBDIR)
- ${_PKG_SILENT}${_PKG_DEBUG} \
- ${TEST} ! -d ${_DISTDIR} \
- || ${RMDIR} ${_DISTDIR} 2>/dev/null \
- || ${TRUE}
+ ${RUN} ${RMDIR} ${_DISTDIR} 2>/dev/null ${TRUE}
. endif
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f README.html
+ ${RUN} ${RM} -f README.html
.endif