3 docpkg = $(doc_pkg_name)
4 docdir = $(CURDIR)/debian/$(docpkg)/usr/share/doc/$(docpkg)
8 dh_clean -k -p$(docpkg)
11 ifeq ($(do_doc_package_content),true)
12 # First the html docs. We skip these for autobuilds
13 if [ -z "$(AUTOBUILD)" ]; then \
14 install -d $(docdir)/$(doc_pkg_name)-tmp; \
15 $(kmake) O=$(docdir)/$(doc_pkg_name)-tmp htmldocs; \
16 mv $(docdir)/$(doc_pkg_name)-tmp/Documentation/DocBook \
18 rm -rf $(docdir)/$(doc_pkg_name)-tmp; \
22 cp -a Documentation/* $(docdir)
23 rm -rf $(docdir)/DocBook
24 find $(docdir) -name .gitignore | xargs rm -f
26 indep_hdrpkg = $(hdrs_pkg_name)
27 indep_hdrdir = $(CURDIR)/debian/$(indep_hdrpkg)/usr/src/$(indep_hdrpkg)
31 dh_clean -k -p$(indep_hdrpkg)
33 install -d $(indep_hdrdir)
34 find . -path './debian' -prune -o -path './$(DEBIAN)' -prune \
35 -o -path './include/*' -prune \
36 -o -path './scripts/*' -prune -o -type f \
37 \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \
38 -name '*.sh' -o -name '*.pl' -o -name '*.lds' \) \
39 -print | cpio -pd --preserve-modification-time $(indep_hdrdir)
40 cp -a drivers/media/dvb/dvb-core/*.h $(indep_hdrdir)/drivers/media/dvb/dvb-core
41 cp -a drivers/media/video/*.h $(indep_hdrdir)/drivers/media/video
42 cp -a drivers/media/dvb/frontends/*.h $(indep_hdrdir)/drivers/media/dvb/frontends
43 cp -a scripts include $(indep_hdrdir)
44 (find arch -name include -type d -print | \
45 xargs -n1 -i: find : -type f) | \
46 cpio -pd --preserve-modification-time $(indep_hdrdir)
48 srcpkg = $(src_pkg_name)-source-$(release)
49 srcdir = $(CURDIR)/debian/$(srcpkg)/usr/src/$(srcpkg)
50 balldir = $(CURDIR)/debian/$(srcpkg)/usr/src/$(srcpkg)/$(srcpkg)
54 dh_clean -k -p$(srcpkg)
57 ifeq ($(do_source_package_content),true)
58 find . -path './debian' -prune -o -path './$(DEBIAN)' -prune -o \
59 -path './.*' -prune -o -print | \
60 cpio -pd --preserve-modification-time $(balldir)
61 (cd $(srcdir); tar cf - $(srcpkg)) | bzip2 -9c > \
62 $(srcdir)/$(srcpkg).tar.bz2
64 find './debian' './$(DEBIAN)' \
65 -path './debian/linux-*' -prune -o \
66 -path './debian/$(src_pkg_name)-*' -prune -o \
67 -path './debian/build' -prune -o \
68 -path './debian/files' -prune -o \
69 -path './debian/stamps' -prune -o \
70 -path './debian/tmp' -prune -o \
72 cpio -pd --preserve-modification-time $(srcdir)
73 ln -s $(srcpkg)/$(srcpkg).tar.bz2 $(srcdir)/..
76 install-tools: toolspkg = $(tools_common_pkg_name)
77 install-tools: toolsbin = $(CURDIR)/debian/$(toolspkg)/usr/bin
78 install-tools: toolsman = $(CURDIR)/debian/$(toolspkg)/usr/share/man
82 dh_clean -k -p$(toolspkg)
84 install -d $(toolsbin)
85 install -d $(toolsman)/man1
87 install -m755 debian/tools/perf $(toolsbin)/perf
89 rm -rf $(builddir)/tools
90 install -d $(builddir)/tools
91 for i in *; do ln -s $(CURDIR)/$$i $(builddir)/tools/; done
92 rm $(builddir)/tools/tools
93 rsync -a tools/ $(builddir)/tools/tools/
95 cd $(builddir)/tools/tools/perf && make man
96 install -m644 $(builddir)/tools/tools/perf/Documentation/*.1 \
99 ifeq ($(do_common_headers_indep),true)
100 install-indep-deps-$(do_flavour_header_package) += install-headers
102 install-indep-deps-$(do_doc_package) += install-doc
103 install-indep-deps-$(do_source_package) += install-source
104 install-indep-deps-$(do_tools) += install-tools
105 install-indep: $(install-indep-deps-true)
107 # This is just to make it easy to call manually. Normally done in
108 # binary-indep target during builds.
109 binary-headers: install-headers
112 dh_installchangelogs -p$(indep_hdrpkg)
113 dh_installdocs -p$(indep_hdrpkg)
114 dh_compress -p$(indep_hdrpkg)
115 dh_fixperms -p$(indep_hdrpkg)
116 dh_installdeb -p$(indep_hdrpkg)
117 dh_gencontrol -p$(indep_hdrpkg)
118 dh_md5sums -p$(indep_hdrpkg)
119 dh_builddeb -p$(indep_hdrpkg)
121 binary-indep: install-indep
125 dh_installchangelogs -i