diff options
author | jlam <jlam> | 2006-06-08 15:45:06 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-06-08 15:45:06 +0000 |
commit | d71e97ad60026bb1e9c0e551f5047622a0b6427a (patch) | |
tree | bca970a1e8df42e4b976302f8ca7f4cb93878e9d /mk | |
parent | f06ada9d508c25a9a556cf3f9bff03ff3303f740 (diff) | |
download | pkgsrc-d71e97ad60026bb1e9c0e551f5047622a0b6427a.tar.gz |
Make use of a "real-depends" helper target to hook all of the other
targets onto, and move the depends-message further down so that if
the depends cookie file already exists, then no message is outputted.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/depends/depends.mk | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/mk/depends/depends.mk b/mk/depends/depends.mk index 59e36bbc818..6bb50b96dbf 100644 --- a/mk/depends/depends.mk +++ b/mk/depends/depends.mk @@ -1,4 +1,4 @@ -# $NetBSD: depends.mk,v 1.5 2006/06/08 08:55:10 rillig Exp $ +# $NetBSD: depends.mk,v 1.6 2006/06/08 15:45:06 jlam Exp $ ###################################################################### ### depends (PUBLIC) @@ -7,7 +7,6 @@ ### the package. ### _DEPENDS_TARGETS+= acquire-depends-lock -_DEPENDS_TARGETS+= depends-message _DEPENDS_TARGETS+= ${_DEPENDS_COOKIE} _DEPENDS_TARGETS+= release-depends-lock @@ -20,18 +19,32 @@ depends: ${_DEPENDS_TARGETS} acquire-depends-lock: acquire-lock release-depends-lock: release-lock -.PHONY: depends-message -depends-message: - @${PHASE_MSG} "Installing dependencies for ${PKGNAME}" - .if !exists(${_DEPENDS_COOKIE}) -${_DEPENDS_COOKIE}: pre-depends-hook depends-install depends-cookie +${_DEPENDS_COOKIE}: real-depends .else ${_DEPENDS_COOKIE}: @${DO_NADA} .endif ###################################################################### +### real-depends (PRIVATE) +###################################################################### +### real-depends is a helper target onto which one can hook all of the +### targets that do the actual dependency installation. +### +_REAL_DEPENDS_TARGETS+= depends-message +_REAL_DEPENDS_TARGETS+= pre-depends-hook +_REAL_DEPENDS_TARGETS+= depends-install +_REAL_DEPENDS_TARGETS+= depends-cookie + +.PHONY: real-depends +real-depends: ${_REAL_DEPENDS_TARGETS} + +.PHONY: depends-message +depends-message: + @${PHASE_MSG} "Installing dependencies for ${PKGNAME}" + +###################################################################### ### depends-install (PRIVATE, override) ###################################################################### ### depends-install checks that all dependencies are installed, and will |