diff options
author | obache <obache@pkgsrc.org> | 2008-02-18 12:38:35 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2008-02-18 12:38:35 +0000 |
commit | 708435ea65d1a4612895d75f3aabbf0f28e5260c (patch) | |
tree | e3e1c85d7ab32d8791b8d7244a7f8b51cabba3bb /mk | |
parent | 37d1c0eafdb71fe3e707e216162cba9ca3011762 (diff) | |
download | pkgsrc-708435ea65d1a4612895d75f3aabbf0f28e5260c.tar.gz |
Add target "show-depends-options" to show depends's options recursively.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.options.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/bsd.options.mk b/mk/bsd.options.mk index f6346b5a03b..63da99ac8f9 100644 --- a/mk/bsd.options.mk +++ b/mk/bsd.options.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.options.mk,v 1.65 2007/10/28 11:29:06 tron Exp $ +# $NetBSD: bsd.options.mk,v 1.66 2008/02/18 12:38:35 obache Exp $ # # This Makefile fragment provides boilerplate code for standard naming # conventions for handling per-package build options. @@ -438,4 +438,14 @@ supported-options-message: . endif .endif +.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 + .endif # BSD_OPTIONS_MK |