833691e2fe
* All the smarts is now encapsulated in the "fetch" script. The fetch script understands how to use the distinfo file (if specified) to look up the size and checksums of the file to fetch and will use that information to verify checksums of the fetched files or resume transfers of interrupted fetches. * Move the default settings for FETCH_RESUME_ARGS and FETCH_OUTPUT_ARGS for "ftp" from mk/defaults/mk.conf into mk/fetch/fetch.mk. We rewrite it to avoid needing conditional statements. * Avoid spawning a new make(1) process just to mirror a distfile. * Split out fetch-list targets into a separate file fetch-list.mk. These targets should probably be moved into a standalone script. * Fix distclean target to properly remove partial downloads.
25 lines
650 B
Makefile
25 lines
650 B
Makefile
# $NetBSD: distclean.mk,v 1.3 2006/07/18 22:41:06 jlam Exp $
|
|
|
|
.PHONY: pre-distclean
|
|
.if !target(pre-distclean)
|
|
pre-distclean:
|
|
@${DO_NADA}
|
|
.endif
|
|
|
|
.PHONY: distclean
|
|
.if !target(distclean)
|
|
distclean: pre-distclean clean
|
|
@${PHASE_MSG} "Dist cleaning for ${PKGNAME}"
|
|
${_PKG_SILENT}${_PKG_DEBUG} \
|
|
${TEST} -d ${_DISTDIR} || exit 0; \
|
|
cd ${_DISTDIR}; \
|
|
${RM} -f ${ALLFILES}; \
|
|
${RM} -f ${ALLFILES:S/$/.pkgsrc.resume/}
|
|
. if defined(DIST_SUBDIR)
|
|
${_PKG_SILENT}${_PKG_DEBUG} \
|
|
${TEST} ! -d ${_DISTDIR} \
|
|
|| ${RMDIR} ${_DISTDIR} 2>/dev/null \
|
|
|| ${TRUE}
|
|
. endif
|
|
${_PKG_SILENT}${_PKG_DEBUG}${RM} -f README.html
|
|
.endif
|