diff options
author | rillig <rillig> | 2007-10-13 13:49:19 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-10-13 13:49:19 +0000 |
commit | e9e69ebb4faa9d8a105bac66cfa22e488ad20750 (patch) | |
tree | 7d6865a0eb2c298344c17d0cee731da10311c4cb /mk/fetch | |
parent | afb20b1e0aa62d6bd720740d893d7a29df4719f0 (diff) | |
download | pkgsrc-e9e69ebb4faa9d8a105bac66cfa22e488ad20750.tar.gz |
Made the code simpler and documented it.
Diffstat (limited to 'mk/fetch')
-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 |