diff options
author | rh <rh@pkgsrc.org> | 2003-05-04 02:59:15 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2003-05-04 02:59:15 +0000 |
commit | 3d1c3b18b4eaee57eda3e58a951ea9960fd6eddc (patch) | |
tree | faa7032ede4619dce4227cf98ed1605db0fe3b45 /mk | |
parent | a66de0c95e3af0800647405168540e8680c8734e (diff) | |
download | pkgsrc-3d1c3b18b4eaee57eda3e58a951ea9960fd6eddc.tar.gz |
Default DEPENDS_TARGET to replace if UPDATE_TARGET == replace. This avoids
multiple rebuilding attempts for prerequisite packages.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index fb7985448f1..066b7bd02c4 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1178 2003/05/04 01:20:13 rh Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1179 2003/05/04 02:59:15 rh Exp $ # # This file is in the public domain. # @@ -1204,7 +1204,11 @@ all: build . if make(package) DEPENDS_TARGET= package . elif make(update) +. if defined(UPDATE_TARGET) && ${UPDATE_TARGET} == "replace" +DEPENDS_TARGET= ${UPDATE_TARGET} +. else DEPENDS_TARGET= update +. endif . elif make(bin-install) DEPENDS_TARGET= bin-install . else |