From 8c582d34de9c936caf56c112d8563a2b8bfb4f1a Mon Sep 17 00:00:00 2001 From: Tim Gardner Date: Mon, 22 Aug 2011 14:11:52 -0600 Subject: [PATCH] UBUNTU: [Config] Serialize binary indep targets Signed-off-by: Tim Gardner --- debian/rules.d/3-binary-indep.mk | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/debian/rules.d/3-binary-indep.mk b/debian/rules.d/3-binary-indep.mk index d929bd5..1d2b2a0 100644 --- a/debian/rules.d/3-binary-indep.mk +++ b/debian/rules.d/3-binary-indep.mk @@ -2,7 +2,8 @@ build-indep: docpkg = $(doc_pkg_name) docdir = $(CURDIR)/debian/$(docpkg)/usr/share/doc/$(docpkg) -install-doc: +install-doc: install-headers +ifeq ($(do_doc_package),true) dh_testdir dh_testroot dh_clean -k -p$(docpkg) @@ -22,10 +23,12 @@ endif cp -a Documentation/* $(docdir) rm -rf $(docdir)/DocBook find $(docdir) -name .gitignore | xargs rm -f +endif indep_hdrpkg = $(hdrs_pkg_name) indep_hdrdir = $(CURDIR)/debian/$(indep_hdrpkg)/usr/src/$(indep_hdrpkg) install-headers: +ifeq ($(do_flavour_header_package),true) dh_testdir dh_testroot dh_clean -k -p$(indep_hdrpkg) @@ -44,11 +47,13 @@ install-headers: (find arch -name include -type d -print | \ xargs -n1 -i: find : -type f) | \ cpio -pd --preserve-modification-time $(indep_hdrdir) +endif srcpkg = $(src_pkg_name)-source-$(release) srcdir = $(CURDIR)/debian/$(srcpkg)/usr/src/$(srcpkg) balldir = $(CURDIR)/debian/$(srcpkg)/usr/src/$(srcpkg)/$(srcpkg) -install-source: +install-source: install-doc +ifeq ($(do_source_package),true) dh_testdir dh_testroot dh_clean -k -p$(srcpkg) @@ -72,11 +77,13 @@ ifeq ($(do_source_package_content),true) cpio -pd --preserve-modification-time $(srcdir) ln -s $(srcpkg)/$(srcpkg).tar.bz2 $(srcdir)/.. endif +endif install-tools: toolspkg = $(tools_common_pkg_name) install-tools: toolsbin = $(CURDIR)/debian/$(toolspkg)/usr/bin install-tools: toolsman = $(CURDIR)/debian/$(toolspkg)/usr/share/man -install-tools: +install-tools: install-source +ifeq ($(do_tools),true) dh_testdir dh_testroot dh_clean -k -p$(toolspkg) @@ -95,14 +102,9 @@ install-tools: cd $(builddir)/tools/tools/perf && make man install -m644 $(builddir)/tools/tools/perf/Documentation/*.1 \ $(toolsman)/man1 - -ifeq ($(do_common_headers_indep),true) -install-indep-deps-$(do_flavour_header_package) += install-headers endif -install-indep-deps-$(do_doc_package) += install-doc -install-indep-deps-$(do_source_package) += install-source -install-indep-deps-$(do_tools) += install-tools -install-indep: $(install-indep-deps-true) + +install-indep: install-tools # This is just to make it easy to call manually. Normally done in # binary-indep target during builds. -- 1.7.10.4