summaryrefslogtreecommitdiff
path: root/mk/depends
diff options
context:
space:
mode:
authorobache <obache>2010-02-20 12:49:48 +0000
committerobache <obache>2010-02-20 12:49:48 +0000
commite93761911b3b1e2973052822605c661fbf920ed3 (patch)
tree597417c61e6d4b296eb8ab27af2652518655ae35 /mk/depends
parentbf506c17c68547ddb0fd97248c74a78c6969bd89 (diff)
downloadpkgsrc-e93761911b3b1e2973052822605c661fbf920ed3.tar.gz
Set default DEPENDS_TARGET based on USE_DESTDIR instead of _USE_DESTDIR,
or failed at the situation current package != destdir support and depends package = destdir support with USE_DESTDIR=yes.
Diffstat (limited to 'mk/depends')
-rw-r--r--mk/depends/bsd.depends.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/depends/bsd.depends.mk b/mk/depends/bsd.depends.mk
index 01a7e9350f5..06a0c2cbec3 100644
--- a/mk/depends/bsd.depends.mk
+++ b/mk/depends/bsd.depends.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.depends.mk,v 1.18 2008/04/04 21:28:51 joerg Exp $
+# $NetBSD: bsd.depends.mk,v 1.19 2010/02/20 12:49:48 obache Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to dependencies.
@@ -22,7 +22,7 @@ SKIP_DEPENDS?= no
# dependencies. This variable is user-settable in /etc/mk.conf.
#
.if !defined(DEPENDS_TARGET)
-. if ${_USE_DESTDIR} != "no"
+. if defined(USE_DESTDIR) && !empty(USE_DESTDIR:M[Yy][Ee][Ss])
DEPENDS_TARGET= package-install
. elif make(package)
DEPENDS_TARGET= package