summaryrefslogtreecommitdiff
path: root/mk/misc
diff options
context:
space:
mode:
authorobache <obache>2013-06-07 00:41:39 +0000
committerobache <obache>2013-06-07 00:41:39 +0000
commit1b3bfb62f7836b375f133895f6f2a4160421a2d4 (patch)
treeedf273b72342722f792961a112604e5834e3dea3 /mk/misc
parent527f476c81648c623d518b4089a1572481282450 (diff)
downloadpkgsrc-1b3bfb62f7836b375f133895f6f2a4160421a2d4.tar.gz
Move show-depends-options again, to be worked form non-option packages.
Diffstat (limited to 'mk/misc')
-rw-r--r--mk/misc/show.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/mk/misc/show.mk b/mk/misc/show.mk
index cbc85252424..8c675ffe1c0 100644
--- a/mk/misc/show.mk
+++ b/mk/misc/show.mk
@@ -1,4 +1,4 @@
-# $NetBSD: show.mk,v 1.10 2009/07/28 07:01:56 rillig Exp $
+# $NetBSD: show.mk,v 1.11 2013/06/07 00:41:39 obache Exp $
#
# This file contains some targets that print information gathered from
# variables. They do not modify any variables.
@@ -157,3 +157,14 @@ show-all-${g}: .PHONY
. endfor
@echo ""
.endfor
+
+.PHONY: show-depends-options
+show-depends-options:
+ ${RUN} \
+ ${_DEPENDS_WALK_CMD} ${PKGPATH} | \
+ while read dir; do \
+ ${ECHO} "===> Options for $${dir}" && \
+ cd ${.CURDIR}/../../$$dir && \
+ ${RECURSIVE_MAKE} ${MAKEFLAGS} show-options; \
+ done
+