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
|
# -*-makefile-*-
#
# Copyright (C) 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# world/install
#
world/install = \
$(call world/env, $(1)) \
ptxd_make_world_install
#
# world/install.pack
#
world/install.pack = \
$(call world/env, $1) \
ptxd_make_world_install_pack
#
# world/install.unpack
#
world/install.unpack = \
$(call world/env, $1) \
ptxd_make_world_install_unpack
#
# world/install.post
#
world/install.post = \
$(call world/env, $1) \
ptxd_make_world_install_post
#
# Perform standard install actions
#
# $1: label of the packet
# $2: optional: alternative directory
# $3: optional: "h" = install as a host tool
# $4: optional: args to pass to make install call
#
install = \
pkg_deprecated_install_builddir="$(call ptx/escape, $(2))" \
pkg_deprecated_install_hosttool="$(call ptx/escape, $(3))" \
pkg_deprecated_install_opt="$(call ptx/escape, $(4))" \
$(call world/install, $(1))
$(STATEDIR)/%.install:
@$(call targetinfo)
@$(call world/install, $(PTX_MAP_TO_PACKAGE_$(*)))
@$(call touch)
$(STATEDIR)/%.install.pack:
@$(call targetinfo)
@$(call world/install.pack, $(PTX_MAP_TO_PACKAGE_$(*)))
@$(call touch)
$(STATEDIR)/%.install.unpack:
@$(call targetinfo)
@$(call world/install.unpack, $(PTX_MAP_TO_PACKAGE_$(*)))
@$(call touch)
$(STATEDIR)/%.install.post:
@$(call targetinfo)
@$(call world/install.post, $(PTX_MAP_TO_PACKAGE_$(*)))
@$(call touch)
# vim: syntax=make
|