diff options
author | jlam <jlam@pkgsrc.org> | 2006-06-05 17:21:54 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-06-05 17:21:54 +0000 |
commit | e3a7dbc7921b2c88379d2fef890b9a96a7b1803c (patch) | |
tree | 3cfc4837c05b7069180938908a35d1e34ab54109 /mk/depends | |
parent | b781d44d4537c5b115dc4915f8c751165dc11f8c (diff) | |
download | pkgsrc-e3a7dbc7921b2c88379d2fef890b9a96a7b1803c.tar.gz |
Move definitions for UPDATE_TARGET and DEPENDS_TARGET closer to where
they are used. Also, move UPDATE_RUNNING into the install module where
it is used, and make it "private" by prepending with an underscore.
Diffstat (limited to 'mk/depends')
-rw-r--r-- | mk/depends/bsd.depends.mk | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/mk/depends/bsd.depends.mk b/mk/depends/bsd.depends.mk index a660d161527..cb5c102bd35 100644 --- a/mk/depends/bsd.depends.mk +++ b/mk/depends/bsd.depends.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.depends.mk,v 1.1 2006/06/03 23:11:42 jlam Exp $ +# $NetBSD: bsd.depends.mk,v 1.2 2006/06/05 17:21:55 jlam Exp $ # # This Makefile fragment is included by bsd.pkg.mk and provides all # variables and targets related to dependencies. @@ -10,6 +10,25 @@ _DEPENDS_COOKIE= ${WRKDIR}/.depends_done +# DEPENDS_TARGET is the target that is invoked to satisfy missing +# dependencies. This variable is user-settable in /etc/mk.conf. +# +.if !defined(DEPENDS_TARGET) +. 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) || make(real-su-bin-install) +DEPENDS_TARGET= bin-install +. else +DEPENDS_TARGET= reinstall +. endif +.endif + ###################################################################### ### depends (PUBLIC) ###################################################################### |