summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2001-01-22 04:00:54 +0000
committerdmcmahill <dmcmahill>2001-01-22 04:00:54 +0000
commita0e171422a9515d1f18ae8a1240704681b3fb138 (patch)
tree3854e81daf51aa28456ffafb814a9a2e4dad1e3f /mk
parent4029b1f6ceb9768e5b81e71ab0cf2d45484a50f4 (diff)
downloadpkgsrc-a0e171422a9515d1f18ae8a1240704681b3fb138.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.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk22
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)