summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-03-15 22:14:30 +0000
committerrillig <rillig@pkgsrc.org>2007-03-15 22:14:30 +0000
commit9d3dd4bd5186eebdce79b68cddfc5501996b5625 (patch)
tree491899fc02a8acf7252179ef16bf21d7e142f08b /mk
parente9d6c5c66b792290e03df01b632fbcc45bfe9348 (diff)
downloadpkgsrc-9d3dd4bd5186eebdce79b68cddfc5501996b5625.tar.gz
Made show-depends a flavor-specific target.
Diffstat (limited to 'mk')
-rw-r--r--mk/depends/bsd.depends.mk12
-rw-r--r--mk/flavor/README2
-rw-r--r--mk/flavor/pkg/depends.mk5
3 files changed, 14 insertions, 5 deletions
diff --git a/mk/depends/bsd.depends.mk b/mk/depends/bsd.depends.mk
index 96b00491013..edbb19462e5 100644
--- a/mk/depends/bsd.depends.mk
+++ b/mk/depends/bsd.depends.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.depends.mk,v 1.11 2007/03/09 00:39:54 rillig Exp $
+# $NetBSD: bsd.depends.mk,v 1.12 2007/03/15 22:14:30 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to dependencies.
@@ -87,3 +87,13 @@ depends-cookie:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${_COOKIE.depends:H}
${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_ARGS} ${_COOKIE.depends}
.endif
+
+# show-depends:
+# Prints a list of dependencies.
+#
+# Command line variables:
+#
+# VARNAME
+# Either DEPENDS or BUILD_DEPENDS.
+#
+show-depends: .PHONY _flavor-show-depends
diff --git a/mk/flavor/README b/mk/flavor/README
index 36ca1b2a8e8..42ba5fbc93d 100644
--- a/mk/flavor/README
+++ b/mk/flavor/README
@@ -47,7 +47,7 @@ The following make targets must be implemented:
* _flavor-check-vulnerable
* _flavor-deinstall
-* show-depends
+* _flavor-show-depends
* _flavor-install-dependencies
* bootstrap-depends
* _flavor-register
diff --git a/mk/flavor/pkg/depends.mk b/mk/flavor/pkg/depends.mk
index ddd7ebc4894..df5a9bec978 100644
--- a/mk/flavor/pkg/depends.mk
+++ b/mk/flavor/pkg/depends.mk
@@ -1,4 +1,4 @@
-# $NetBSD: depends.mk,v 1.24 2007/03/15 03:01:33 rillig Exp $
+# $NetBSD: depends.mk,v 1.25 2007/03/15 22:14:30 rillig Exp $
_DEPENDS_FILE= ${WRKDIR}/.depends
_REDUCE_DEPENDS_CMD= ${SETENV} CAT=${CAT:Q} \
@@ -19,8 +19,7 @@ _BUILD_DEPENDS_PATTERNS_CMD= \
[ ! -f ${_COOKIE.depends} ] \
|| ${AWK} '$$1 == "build" { print $$2; }' < ${_COOKIE.depends}
-.PHONY: show-depends
-show-depends:
+_flavor-show-depends: .PHONY
@case ${VARNAME:Q}"" in \
BUILD_DEPENDS) ${_REDUCE_DEPENDS_CMD} ${BUILD_DEPENDS:Q} ;; \
DEPENDS|*) ${_REDUCE_DEPENDS_CMD} ${DEPENDS:Q} ;; \