diff options
author | obache <obache@pkgsrc.org> | 2010-02-20 12:49:48 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-02-20 12:49:48 +0000 |
commit | 978c1a2c02dd09a6022e8541803894105f559505 (patch) | |
tree | 597417c61e6d4b296eb8ab27af2652518655ae35 | |
parent | 876fc8eaed84c646adaff16bc8bd2a353e74d097 (diff) | |
download | pkgsrc-978c1a2c02dd09a6022e8541803894105f559505.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.
-rw-r--r-- | mk/depends/bsd.depends.mk | 4 |
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 |