blob: 354b7c49c5c394011cb1c7f0d62cbcbf4e07a221 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: depends.mk,v 1.9 2006/07/05 22:21:02 jlam Exp $
######################################################################
### depends (PUBLIC)
######################################################################
### depends is a public target to install missing dependencies for
### the package.
###
_DEPENDS_TARGETS+= acquire-depends-lock
_DEPENDS_TARGETS+= ${_DEPENDS_COOKIE}
_DEPENDS_TARGETS+= release-depends-lock
.PHONY: depends
.if !target(depends)
. if exists(${_DEPENDS_COOKIE})
depends:
@${DO_NADA}
. else
depends: ${_DEPENDS_TARGETS}
. endif
.endif
.PHONY: acquire-depends-lock release-depends-lock
acquire-depends-lock: acquire-lock
release-depends-lock: release-lock
.if exists(${_DEPENDS_COOKIE})
${_DEPENDS_COOKIE}:
@${DO_NADA}
.else
${_DEPENDS_COOKIE}: real-depends
.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
_REAL_DEPENDS_TARGETS+= error-check
.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
### install any missing dependencies. This should be overridden per
### package system flavor.
###
.if !target(depends-install)
.PHONY: depends-install
depends-install:
@${DO_NADA}
.endif
######################################################################
### pre-depends-hook (PRIVATE, override, hook)
######################################################################
### pre-depends-hook is a generic hook target that is run just before
### dependencies are installed for depends-install.
###
.PHONY: pre-depends-hook
.if !target(pre-depends-hook)
pre-depends-hook:
@${DO_NADA}
.endif
|