4 # The binary-indep dependency chain is:
6 # install-headers <- install-doc <- install-source <- install-tools <- install-indep <- binary-indep
7 # install-headers <- binary-headers
9 indep_hdrpkg
= $(indep_hdrs_pkg_name
)
10 indep_hdrdir
= $(CURDIR
)/debian
/$(indep_hdrpkg
)/usr
/src
/$(indep_hdrpkg
)
17 ifeq ($(do_flavour_header_package
),true
)
18 install -d
$(indep_hdrdir
)
19 find .
-path
'./debian' -prune
-o
-path
'./$(DEBIAN)' -prune \
20 -o
-path
'./include/*' -prune \
21 -o
-path
'./scripts/*' -prune
-o
-type f \
22 \
( -name
'Makefile*' -o
-name
'Kconfig*' -o
-name
'Kbuild*' -o \
23 -name
'*.sh' -o
-name
'*.pl' -o
-name
'*.lds' \
) \
24 -print | cpio
-pd
--preserve-modification-time
$(indep_hdrdir
)
25 cp
-a scripts
include $(indep_hdrdir
)
26 (find arch
-name
include -type d
-print | \
27 xargs
-n1
-i
: find
: -type f
) | \
28 cpio
-pd
--preserve-modification-time
$(indep_hdrdir
)
31 docpkg
= $(doc_pkg_name
)
32 docdir
= $(CURDIR
)/debian
/$(docpkg
)/usr
/share
/doc
/$(docpkg
)
33 install-doc
: install-headers
35 ifeq ($(do_doc_package
),true
)
40 ifeq ($(do_doc_package_content
),true
)
41 # First the html docs. We skip these for autobuilds
42 if
[ -z
"$(AUTOBUILD)" ]; then \
43 install -d
$(docdir
)/$(doc_pkg_name
)-tmp
; \
44 $(kmake
) O
=$(docdir
)/$(doc_pkg_name
)-tmp htmldocs
; \
45 install -d
$(docdir
)/html
; \
46 rsync
-aL
$(docdir
)/$(doc_pkg_name
)-tmp
/Documentation
/DocBook
/ \
48 rm -rf
$(docdir
)/$(doc_pkg_name
)-tmp
; \
52 cp
-a Documentation
/* $(docdir
)
53 rm -rf
$(docdir
)/DocBook
54 find
$(docdir
) -name .gitignore | xargs
rm -f
57 srcpkg
= $(src_pkg_name
)-source-
$(release
)
58 srcdir = $(CURDIR
)/debian
/$(srcpkg
)/usr
/src
/$(srcpkg
)
59 balldir
= $(CURDIR
)/debian
/$(srcpkg
)/usr
/src
/$(srcpkg
)/$(srcpkg
)
60 install-source
: install-doc
62 ifeq ($(do_source_package
),true
)
65 ifeq ($(do_source_package_content
),true
)
66 find .
-path
'./debian' -prune
-o
-path
'./$(DEBIAN)' -prune
-o \
67 -path
'./.*' -prune
-o
-print | \
68 cpio
-pd
--preserve-modification-time
$(balldir
)
69 (cd
$(srcdir); tar cf
- $(srcpkg
)) | bzip2
-9c
> \
70 $(srcdir)/$(srcpkg
).
tar.bz2
72 find
'./debian' './$(DEBIAN)' \
73 -path
'./debian/linux-*' -prune
-o \
74 -path
'./debian/$(src_pkg_name)-*' -prune
-o \
75 -path
'./debian/build' -prune
-o \
76 -path
'./debian/files' -prune
-o \
77 -path
'./debian/stamps' -prune
-o \
78 -path
'./debian/tmp' -prune
-o \
80 cpio
-pd
--preserve-modification-time
$(srcdir)
81 $(LN
) $(srcpkg
)/$(srcpkg
).
tar.bz2
$(srcdir)/..
85 install-tools
: toolspkg
= $(tools_common_pkg_name
)
86 install-tools
: toolsbin
= $(CURDIR
)/debian
/$(toolspkg
)/usr
/bin
87 install-tools
: toolssbin
= $(CURDIR
)/debian
/$(toolspkg
)/usr
/sbin
88 install-tools
: toolsman
= $(CURDIR
)/debian
/$(toolspkg
)/usr
/share
/man
89 install-tools
: cloudpkg
= $(cloud_common_pkg_name
)
90 install-tools
: cloudbin
= $(CURDIR
)/debian
/$(cloudpkg
)/usr
/bin
91 install-tools
: cloudsbin
= $(CURDIR
)/debian
/$(cloudpkg
)/usr
/sbin
92 install-tools
: cloudman
= $(CURDIR
)/debian
/$(cloudpkg
)/usr
/share
/man
93 install-tools
: install-source
$(stampdir
)/stamp-build-perarch
96 rm -rf
$(builddir
)/tools
97 install -d
$(builddir
)/tools
98 for i in
*; do
$(LN
) $(CURDIR
)/$$i $(builddir
)/tools
/; done
99 rm $(builddir
)/tools
/tools
100 rsync
-a tools
/ $(builddir
)/tools
/tools
/
102 install -d
$(toolsbin
)
103 install -d
$(toolsman
)/man1
105 install -m755 debian
/tools
/generic
$(toolsbin
)/usbip
106 install -m755 debian
/tools
/generic
$(toolsbin
)/usbipd
107 install -m644
$(CURDIR
)/tools
/usb
/usbip
/doc
/*.8 $(toolsman
)/man1
/
109 install -m755 debian
/tools
/generic
$(toolsbin
)/cpupower
110 install -m644
$(CURDIR
)/tools
/power
/cpupower
/man
/*.1 $(toolsman
)/man1
/
112 install -m755 debian
/tools
/generic
$(toolsbin
)/perf
114 install -m755 debian
/tools
/generic
$(toolsbin
)/x86_energy_perf_policy
115 install -m755 debian
/tools
/generic
$(toolsbin
)/turbostat
117 cd
$(builddir
)/tools
/tools
/perf
&& make man
118 install -m644
$(builddir
)/tools
/tools
/perf
/Documentation
/*.1 \
121 install -d
$(toolsman
)/man8
122 install -m644
$(CURDIR
)/tools
/power
/x86
/x86_energy_perf_policy
/*.8 $(toolsman
)/man8
123 install -m644
$(CURDIR
)/tools
/power
/x86
/turbostat
/*.8 $(toolsman
)/man8
125 install -d
$(cloudsbin
)
126 install -m755 debian
/tools
/generic
$(cloudsbin
)/hv_kvp_daemon
127 install -m755 debian
/tools
/generic
$(cloudsbin
)/hv_vss_daemon
128 install -m755 debian
/tools
/generic
$(cloudsbin
)/hv_fcopy_daemon
129 install -m755 debian
/cloud-tools
/hv_get_dhcp_info
$(cloudsbin
)
130 install -m755 debian
/cloud-tools
/hv_get_dns_info
$(cloudsbin
)
131 install -m755 debian
/cloud-tools
/hv_set_ifconfig
$(cloudsbin
)
133 install -d
$(cloudman
)/man8
134 install -m644
$(CURDIR
)/tools
/hv
/*.8 $(cloudman
)/man8
137 dh_installinit
-p
$(cloudpkg
) --name hv-kvp-daemon
138 dh_installinit
-p
$(cloudpkg
) --name hv-vss-daemon
139 dh_installinit
-p
$(cloudpkg
) --name hv-fcopy-daemon
143 install-indep
: install-tools
146 # This is just to make it easy to call manually. Normally done in
147 # binary-indep target during builds.
148 binary-headers
: install-headers
150 dh_installchangelogs
-p
$(indep_hdrpkg
)
151 dh_installdocs
-p
$(indep_hdrpkg
)
152 dh_compress
-p
$(indep_hdrpkg
)
153 dh_fixperms
-p
$(indep_hdrpkg
)
154 dh_installdeb
-p
$(indep_hdrpkg
)
155 $(lockme
) dh_gencontrol
-p
$(indep_hdrpkg
)
156 dh_md5sums
-p
$(indep_hdrpkg
)
157 dh_builddeb
-p
$(indep_hdrpkg
)
159 binary-indep
: install-indep
162 dh_installchangelogs
-i
167 $(lockme
) dh_gencontrol
-i