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 | 76e70e27fb1ade8b8ffa62a2fdbb54e6016b7d4e (patch) | |
tree | 597417c61e6d4b296eb8ab27af2652518655ae35 /mk/depends | |
parent | feb7fa76a93d8abe43cc3e7374d36a4ffb55ee01 (diff) | |
download | pkgsrc-76e70e27fb1ade8b8ffa62a2fdbb54e6016b7d4e.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.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 |