blob: 2f8383259d6226056c45f0eb5b05f63c32a16fb1 (
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
|
# $NetBSD: bsd.install.mk,v 1.5 2006/07/05 22:21:02 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to installing packages.
#
# The following are the "public" targets provided this module:
#
# install, deinstall, reinstall, replace, undo-replace
#
# The following targets may be overridden in a package Makefile:
#
# pre-install, do-install, post-install
#
_INSTALL_COOKIE= ${WRKDIR}/.install_done
######################################################################
### install (PUBLIC)
######################################################################
### install is a public target to install the package.
###
.PHONY: install
.if !defined(NO_INSTALL)
. include "${PKGSRCDIR}/mk/install/install.mk"
.elif !target(install)
. if exists(${_INSTALL_COOKIE})
install:
@${DO_NADA}
. else
install: ${_PKGSRC_BUILD_TARGETS} install-cookie
. endif
.endif
.include "${PKGSRCDIR}/mk/install/deinstall.mk"
.include "${PKGSRCDIR}/mk/install/replace.mk"
######################################################################
### install-cookie (PRIVATE)
######################################################################
### install-cookie creates the "install" cookie file.
###
.PHONY: install-cookie
install-cookie:
${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${PKGNAME} > ${_INSTALL_COOKIE}
|