diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2001-01-22 04:00:54 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2001-01-22 04:00:54 +0000 |
commit | 700bd470645ee82eca5a2b0fae12636bd1d4f731 (patch) | |
tree | 3854e81daf51aa28456ffafb814a9a2e4dad1e3f | |
parent | 435561a4d03248e9f3a6a1d05fcc61e1b17242bd (diff) | |
download | pkgsrc-700bd470645ee82eca5a2b0fae12636bd1d4f731.tar.gz |
add 'show-depends-dir' target. This shows the directories of the "top level"
depends for the package. Both build and run depends are shown. This is
a non-recursive target. Ie, only explicitly depends are shown.
Example:
bondage 109 # cd /usr/pkgsrc/cad/geda && make show-depends-dirs
cad/gschem cad/gnetlist cad/gsymcheck cad/geda-utils cad/geda-docs
This target is useful for collecting dependency tree information for bulk
builds.
-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) |