summaryrefslogtreecommitdiff
path: root/mk/extract
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-06 06:30:29 +0000
committerjlam <jlam>2006-06-06 06:30:29 +0000
commit2247167092bd2ba8df69e865f83c0e43fafb3a88 (patch)
tree9920fd5c6fa218862616c8c8f878cd84172f09bb /mk/extract
parent3b1acd25d6284cad98503e842484eaa9e16f9943 (diff)
downloadpkgsrc-2247167092bd2ba8df69e865f83c0e43fafb3a88.tar.gz
Separate out the part of bsd.tools.mk that actually created the tools
into a new file pkgsrc/mk/tools/create.mk. This leaves bsd.tools.mk as a file that pulls in all of the other ones. Also move the tools-related targets from bsd.pkg.mk into bsd.tools.mk. The tools cookie file has been removed, as well as hooks for {pre,do,post}-tools. Instead, there is now only a single public target "tools" which may be invoked. Invoking "tools" will always cause all of the tools in ${TOOLS_DIR} to be created. The "tools" step has been moved and is now just after the "depends" step and before sources are extracted. This is the earliest place where the "tools" step can be taken, and it allows the created tools to be used in all steps/phases after it, starting with "extract". As a consequence, we should just invoke tools by their bare names in targets, e.g. awk, sed, patch, etc., instead of with the ${VARIABLE} names, e.g. ${AWK}, ${SED}, ${PATCH}, etc.
Diffstat (limited to 'mk/extract')
-rw-r--r--mk/extract/extract.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/extract/extract.mk b/mk/extract/extract.mk
index f4c7aac4947..2b78e4b9aaa 100644
--- a/mk/extract/extract.mk
+++ b/mk/extract/extract.mk
@@ -1,4 +1,4 @@
-# $NetBSD: extract.mk,v 1.1 2006/06/06 03:05:48 jlam Exp $
+# $NetBSD: extract.mk,v 1.2 2006/06/06 06:30:29 jlam Exp $
#
# The following variables may be set by the package Makefile and
# specify how extraction happens:
@@ -45,6 +45,7 @@ _EXTRACT_COOKIE= ${WRKDIR}/.extract_done
_EXTRACT_TARGETS+= checksum
_EXTRACT_TARGETS+= ${WRKDIR}
_EXTRACT_TARGETS+= depends
+_EXTRACT_TARGETS+= tools
_EXTRACT_TARGETS+= acquire-extract-lock
_EXTRACT_TARGETS+= ${_EXTRACT_COOKIE}
_EXTRACT_TARGETS+= release-extract-lock