summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-04-04 21:28:51 +0000
committerjoerg <joerg@pkgsrc.org>2008-04-04 21:28:51 +0000
commit6c98d7f7d57f2a8af9acabdf40bfe9ef4993c3f7 (patch)
tree6e28c65db5effe8adfb25480f80c08ddb6129e00 /mk
parent2542793babd088c6d1e8a5a512de9596ed03d88c (diff)
downloadpkgsrc-6c98d7f7d57f2a8af9acabdf40bfe9ef4993c3f7.tar.gz
Change default DEPENDS_TARGET to package-install if USE_DESTDIR != no.
Discussed with jlam.
Diffstat (limited to 'mk')
-rw-r--r--mk/depends/bsd.depends.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/depends/bsd.depends.mk b/mk/depends/bsd.depends.mk
index 945a1aced86..01a7e9350f5 100644
--- a/mk/depends/bsd.depends.mk
+++ b/mk/depends/bsd.depends.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.depends.mk,v 1.17 2008/02/20 10:43:55 rillig Exp $
+# $NetBSD: bsd.depends.mk,v 1.18 2008/04/04 21:28:51 joerg Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to dependencies.
@@ -22,7 +22,9 @@ SKIP_DEPENDS?= no
# dependencies. This variable is user-settable in /etc/mk.conf.
#
.if !defined(DEPENDS_TARGET)
-. if make(package)
+. if ${_USE_DESTDIR} != "no"
+DEPENDS_TARGET= package-install
+. elif make(package)
DEPENDS_TARGET= package
. elif make(update)
. if defined(UPDATE_TARGET) && (${UPDATE_TARGET} == "replace")