summaryrefslogtreecommitdiff
path: root/mk/reduce-depends.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-10-06 21:51:41 +0000
committerjlam <jlam@pkgsrc.org>2004-10-06 21:51:41 +0000
commit095767c3c27d7fbca6a15e4ec8a9a0f98c731f63 (patch)
tree10d8a3a34143a37d2d6749a346f09c632b55f368 /mk/reduce-depends.mk
parentf8946737f1b84503239dface55031fb3c19331be (diff)
downloadpkgsrc-095767c3c27d7fbca6a15e4ec8a9a0f98c731f63.tar.gz
_DEPENDS.${_path_} can contain more than one dependency pattern, so split
along whitespace when appending ":../../category/pkgdir". Fixes problem noticed when running "make show-depends-dirs".
Diffstat (limited to 'mk/reduce-depends.mk')
-rw-r--r--mk/reduce-depends.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/reduce-depends.mk b/mk/reduce-depends.mk
index 93e8d374894..5c46594305b 100644
--- a/mk/reduce-depends.mk
+++ b/mk/reduce-depends.mk
@@ -1,4 +1,4 @@
-# $NetBSD: reduce-depends.mk,v 1.1 2004/10/05 15:28:50 jlam Exp $
+# $NetBSD: reduce-depends.mk,v 1.2 2004/10/06 21:51:41 jlam Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -111,7 +111,9 @@ _STRICTEST_DEPENDS.${_path_}= ${_depend_}
# The dependencies simply conflict, so just pass them on through to the
# normal dependency handling code.
#
-REDUCED_DEPENDS+= ${_DEPENDS.${_path_}}:${_DEPENDS_PKGPATH.${_path_}}
+. for _depend_ in ${_DEPENDS.${_path_}}
+REDUCED_DEPENDS+= ${_depend_}:${_DEPENDS_PKGPATH.${_path_}}
+. endfor
. else
. for _depend_ in ${_DEPENDS.${_path_}}
. if empty(_GE_DEPENDS.${_path_}:M${_depend_})