pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/fetch Made the code simpler and documented it.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5405291be89b
branches:  trunk
changeset: 534182:5405291be89b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Oct 13 13:49:19 2007 +0000

description:
Made the code simpler and documented it.

diffstat:

 mk/fetch/distclean.mk |  21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diffs (36 lines):

diff -r 4244fd1bb727 -r 5405291be89b mk/fetch/distclean.mk
--- a/mk/fetch/distclean.mk     Sat Oct 13 13:13:16 2007 +0000
+++ b/mk/fetch/distclean.mk     Sat Oct 13 13:49:19 2007 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index