diff options
author | rillig <rillig@pkgsrc.org> | 2007-10-13 13:49:19 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-10-13 13:49:19 +0000 |
commit | 6ae88c613d3fbfa47b5d5c70fb08ea0877716249 (patch) | |
tree | 7d6865a0eb2c298344c17d0cee731da10311c4cb /mk | |
parent | 8b6052304992af460bb75f456aa670b979ebf502 (diff) | |
download | pkgsrc-6ae88c613d3fbfa47b5d5c70fb08ea0877716249.tar.gz |
Made the code simpler and documented it.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/fetch/distclean.mk | 21 |
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 |