summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2007-10-13 13:49:19 +0000
committerrillig <rillig>2007-10-13 13:49:19 +0000
commite9e69ebb4faa9d8a105bac66cfa22e488ad20750 (patch)
tree7d6865a0eb2c298344c17d0cee731da10311c4cb /mk
parentafb20b1e0aa62d6bd720740d893d7a29df4719f0 (diff)
downloadpkgsrc-e9e69ebb4faa9d8a105bac66cfa22e488ad20750.tar.gz
Made the code simpler and documented it.
Diffstat (limited to 'mk')
-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