blob: e21128443aefb5613d61f4d222a2eca060d6ad70 (
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
|
# $NetBSD: depends.mk,v 1.2 2006/06/04 19:04:57 seb 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
depends: ${_DEPENDS_TARGETS}
.PHONY: acquire-depends-lock release-depends-lock
acquire-depends-lock: acquire-lock
release-depends-lock: release-lock
.if !target(${_DEPENDS_COOKIE})
${_DEPENDS_COOKIE}: pre-depends-hook depends-install depends-cookie
.else
${_DEPENDS_COOKIE}:
@${DO_NADA}
.endif
######################################################################
### 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
|