summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-27 17:29:57 +0000
committerjlam <jlam@pkgsrc.org>2006-07-27 17:29:57 +0000
commit182dc839b5a47efdd2ead2049e478cd964311d6e (patch)
tree0ad441363fc22bdae418c17aed6c1f0f39a49349 /mk
parent1796f4ff8aeff39e6ace854e8574d66fd3f98ba5 (diff)
downloadpkgsrc-182dc839b5a47efdd2ead2049e478cd964311d6e.tar.gz
Document the targets in fetch-list.mk.
Diffstat (limited to 'mk')
-rw-r--r--mk/fetch/fetch-list.mk32
1 files changed, 30 insertions, 2 deletions
diff --git a/mk/fetch/fetch-list.mk b/mk/fetch/fetch-list.mk
index 882b14a3389..98abc10f20f 100644
--- a/mk/fetch/fetch-list.mk
+++ b/mk/fetch/fetch-list.mk
@@ -1,9 +1,23 @@
-# $NetBSD: fetch-list.mk,v 1.7 2006/07/27 17:23:16 jlam Exp $
+# $NetBSD: fetch-list.mk,v 1.8 2006/07/27 17:29:57 jlam Exp $
-# Prints out a script to fetch all needed files (no checksumming).
+######################################################################
+### fetch-list (PUBLIC)
+######################################################################
+### fetch-list is a public target to print out a standalone shell
+### script to fetch all distfiles needed to build the package,
+### including distfiles needed by dependencies. This script does not
+### perform any checksumming of the distfiles and does not resume
+### interrupted file transfers.
+###
.PHONY: fetch-list
fetch-list: fetch-list-header fetch-list-recursive
+######################################################################
+### fetch-list-header (PRIVATE)
+######################################################################
+### fetch-list-header prints out the preamble comments for the
+### fetch-list shell script.
+###
.PHONY: fetch-list-header
fetch-list-header:
@${ECHO} '#!/bin/sh'
@@ -13,6 +27,14 @@ fetch-list-header:
@${ECHO} '# on host "'"`${UNAME} -n`"'" on "'"`date`"'".'
@${ECHO} '#'
+######################################################################
+### fetch-list-recursive (PRIVATE)
+######################################################################
+### fetch-list-recursive outputs the heart of the shell script by
+### looping over all package directories for dependencies and
+### outputting the shell script to fetch the distfiles for that
+### dependency.
+###
.PHONY: fetch-list-recursive
fetch-list-recursive:
@${_DEPENDS_WALK_CMD} -r ${PKGPATH} | \
@@ -29,6 +51,12 @@ fetch-list-recursive:
); \
done
+######################################################################
+### fetch-list-one-pkg (PRIVATE)
+######################################################################
+### fetch-list-one-pkg outputs the standalone shell script code to
+### fetch the distfiles for the package.
+###
.PHONY: fetch-list-one-pkg
fetch-list-one-pkg:
.if !empty(_ALLFILES)