summaryrefslogtreecommitdiff
path: root/mk/depends
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-03-23 21:21:33 +0000
committerjlam <jlam@pkgsrc.org>2007-03-23 21:21:33 +0000
commit7047fae87fa6899e45044343c61a53143d018199 (patch)
treed5c85a613cb3f1afed9a6188044af5eb4b85e439 /mk/depends
parent63f33b38dbb54fd5ba21c34bd2a0e1357bdd910f (diff)
downloadpkgsrc-7047fae87fa6899e45044343c61a53143d018199.tar.gz
Resurrect the ability to skip the depends phase that was removed in
revision 1.10. Use a new name that is more aligned with current variable-naming methodology: SKIP_DEPENDS. It's a YesNo variable that defaults to "no". This functionality is just way too useful to pkgsrc developers to lose.
Diffstat (limited to 'mk/depends')
-rw-r--r--mk/depends/bsd.depends.mk24
1 files changed, 22 insertions, 2 deletions
diff --git a/mk/depends/bsd.depends.mk b/mk/depends/bsd.depends.mk
index edbb19462e5..cabd14d8749 100644
--- a/mk/depends/bsd.depends.mk
+++ b/mk/depends/bsd.depends.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.depends.mk,v 1.12 2007/03/15 22:14:30 rillig Exp $
+# $NetBSD: bsd.depends.mk,v 1.13 2007/03/23 21:21:33 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to dependencies.
@@ -7,6 +7,16 @@
#
# depends, bootstrap-depends, install-depends
#
+# The following variables may be set by the pkgsrc user:
+#
+# SKIP_DEPENDS: YesNo
+# Whether to run the ``depends'' phase. This is probably only
+# useful for pkgsrc developers.
+#
+# Default value: no
+#
+
+SKIP_DEPENDS?= no
# DEPENDS_TARGET is the target that is invoked to satisfy missing
# dependencies. This variable is user-settable in /etc/mk.conf.
@@ -33,7 +43,17 @@ DEPENDS_TARGET= reinstall
### depends is a public target to install missing dependencies for
### the package.
###
-.include "${PKGSRCDIR}/mk/depends/depends.mk"
+.PHONY: depends
+.if ${SKIP_DEPENDS:M[Nn][Oo]} != ""
+. include "${PKGSRCDIR}/mk/depends/depends.mk"
+.elif !target(depends)
+. if exists(${_COOKIE.depends})
+depends:
+ @${DO_NADA}
+. else
+depends: depends-cookie
+. endif
+.endif
######################################################################
### bootstrap-depends (PUBLIC, OVERRIDE)