diff options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index e707a412316..1b1a9bf6907 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.645 2001/01/21 22:41:03 veego Exp $ +# $NetBSD: bsd.pkg.mk,v 1.646 2001/01/22 04:00:54 dmcmahill Exp $ # # This file is in the public domain. # @@ -1308,6 +1308,26 @@ do-fetch: .endif .endif +# show both build and run depends directories (non-recursively) +.if !target(show-depends-dirs) +show-depends-dirs: +.if defined(IGNORE) + ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA} +.else + ${_PKG_SILENT}${_PKG_DEBUG} \ + dlist="";\ + for reldir in ${DEPENDS:C/^[^:]*://:C/:.*$//} ${BUILD_DEPENDS:C/^[^:]*://:C/:.*$//} ;\ + do \ + cd $$reldir ;\ + PWD=`pwd` ;\ + d=`dirname $$PWD` ;\ + absdir=`basename $$d`/`basename $$PWD` ;\ + dlist="$$dlist $$absdir";\ + done ;\ + ${ECHO} "$$dlist" +.endif +.endif + .if !target(show-distfiles) show-distfiles: .if defined(IGNORE) |