Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2915)

Unified Diff: debian.chrome/rules.d/3-binary-indep.mk

Issue 646032: Rename config to match naming convention. (Closed)
Patch Set: Send mail Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debian.chrome/rules.d/2-binary-arch.mk ('k') | debian.chrome/rules.d/4-checks.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debian.chrome/rules.d/3-binary-indep.mk
diff --git a/debian.chrome/rules.d/3-binary-indep.mk b/debian.chrome/rules.d/3-binary-indep.mk
new file mode 100644
index 0000000000000000000000000000000000000000..4887dcf91c1f440d3f0e474340cb90682bea58e8
--- /dev/null
+++ b/debian.chrome/rules.d/3-binary-indep.mk
@@ -0,0 +1,92 @@
+build-indep:
+
+docpkg = $(doc_pkg_name)
+docdir = $(CURDIR)/debian/$(docpkg)/usr/share/doc/$(docpkg)
+install-doc:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -p$(docpkg)
+
+ install -d $(docdir)
+ifeq ($(do_doc_package_content),true)
+ # First the html docs. We skip these for autobuilds
+ if [ -z "$(AUTOBUILD)" ]; then \
+ install -d $(docdir)/$(doc_pkg_name)-tmp; \
+ $(kmake) O=$(docdir)/$(doc_pkg_name)-tmp htmldocs; \
+ mv $(docdir)/$(doc_pkg_name)-tmp/Documentation/DocBook \
+ $(docdir)/html; \
+ rm -rf $(docdir)/$(doc_pkg_name)-tmp; \
+ fi
+endif
+ # Copy the rest
+ cp -a Documentation/* $(docdir)
+ rm -rf $(docdir)/DocBook
+ find $(docdir) -name .gitignore | xargs rm -f
+
+indep_hdrpkg = $(hdrs_pkg_name)
+indep_hdrdir = $(CURDIR)/debian/$(indep_hdrpkg)/usr/src/$(indep_hdrpkg)
+install-headers:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -p$(indep_hdrpkg)
+
+ install -d $(indep_hdrdir)
+ find . -path './debian' -prune -o -path './$(DEBIAN)' -prune \
+ -o -path './include/*' -prune \
+ -o -path './scripts/*' -prune -o -type f \
+ \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \
+ -name '*.sh' -o -name '*.pl' -o -name '*.lds' \) \
+ -print | cpio -pd --preserve-modification-time $(indep_hdrdir)
+ cp -a drivers/media/dvb/dvb-core/*.h $(indep_hdrdir)/drivers/media/dvb/dvb-core
+ cp -a drivers/media/video/*.h $(indep_hdrdir)/drivers/media/video
+ cp -a drivers/media/dvb/frontends/*.h $(indep_hdrdir)/drivers/media/dvb/frontends
+ cp -a scripts include $(indep_hdrdir)
+ (find arch -name include -type d -print | \
+ xargs -n1 -i: find : -type f) | \
+ cpio -pd --preserve-modification-time $(indep_hdrdir)
+
+srcpkg = $(src_pkg_name)-source-$(release)
+srcdir = $(CURDIR)/debian/$(srcpkg)/usr/src/$(srcpkg)
+install-source:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -p$(srcpkg)
+
+ install -d $(srcdir)
+ifeq ($(do_linux_source_content),true)
+ find . -path './debian' -prune -o -path './$(DEBIAN)' -prune -o \
+ -path './.*' -prune -o -print | \
+ cpio -pd --preserve-modification-time $(srcdir)
+ (cd $(srcdir)/..; tar cf - $(srcpkg)) | bzip2 -9c > \
+ $(srcdir).tar.bz2
+ rm -rf $(srcdir)
+endif
+
+install-indep: install-headers install-doc install-source
+
+# This is just to make it easy to call manually. Normally done in
+# binary-indep target during builds.
+binary-headers: install-headers
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -p$(indep_hdrpkg)
+ dh_installdocs -p$(indep_hdrpkg)
+ dh_compress -p$(indep_hdrpkg)
+ dh_fixperms -p$(indep_hdrpkg)
+ dh_installdeb -p$(indep_hdrpkg)
+ dh_gencontrol -p$(indep_hdrpkg)
+ dh_md5sums -p$(indep_hdrpkg)
+ dh_builddeb -p$(indep_hdrpkg)
+
+binary-indep: install-indep
+ dh_testdir
+ dh_testroot
+
+ dh_installchangelogs -i
+ dh_installdocs -i
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
« no previous file with comments | « debian.chrome/rules.d/2-binary-arch.mk ('k') | debian.chrome/rules.d/4-checks.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698