Commit 1be3da78 authored by Tim Gardner's avatar Tim Gardner

UBUNTU: [debian] Use dh_prep instead of 'dh_clean -k'

dh_prep needs to be run only once at the root of the
binary-indep dependency chain, i.e., install-headers.

Similarly, dh_testdir and dh_testroot only need to be run once at
the root of the binary-indep dependency chain.
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent a1a3142b
...@@ -8,7 +8,6 @@ install-doc: install-headers ...@@ -8,7 +8,6 @@ install-doc: install-headers
ifeq ($(do_doc_package),true) ifeq ($(do_doc_package),true)
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_clean -k -p$(docpkg)
install -d $(docdir) install -d $(docdir)
ifeq ($(do_doc_package_content),true) ifeq ($(do_doc_package_content),true)
...@@ -31,11 +30,11 @@ indep_hdrpkg = $(hdrs_pkg_name) ...@@ -31,11 +30,11 @@ indep_hdrpkg = $(hdrs_pkg_name)
indep_hdrdir = $(CURDIR)/debian/$(indep_hdrpkg)/usr/src/$(indep_hdrpkg) indep_hdrdir = $(CURDIR)/debian/$(indep_hdrpkg)/usr/src/$(indep_hdrpkg)
install-headers: install-headers:
@echo Debug: $@ @echo Debug: $@
ifeq ($(do_flavour_header_package),true)
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_clean -k -p$(indep_hdrpkg) dh_prep
ifeq ($(do_flavour_header_package),true)
install -d $(indep_hdrdir) install -d $(indep_hdrdir)
find . -path './debian' -prune -o -path './$(DEBIAN)' -prune \ find . -path './debian' -prune -o -path './$(DEBIAN)' -prune \
-o -path './include/*' -prune \ -o -path './include/*' -prune \
...@@ -55,9 +54,6 @@ balldir = $(CURDIR)/debian/$(srcpkg)/usr/src/$(srcpkg)/$(srcpkg) ...@@ -55,9 +54,6 @@ balldir = $(CURDIR)/debian/$(srcpkg)/usr/src/$(srcpkg)/$(srcpkg)
install-source: install-doc install-source: install-doc
@echo Debug: $@ @echo Debug: $@
ifeq ($(do_source_package),true) ifeq ($(do_source_package),true)
dh_testdir
dh_testroot
dh_clean -k -p$(srcpkg)
install -d $(srcdir) install -d $(srcdir)
ifeq ($(do_source_package_content),true) ifeq ($(do_source_package_content),true)
...@@ -87,9 +83,6 @@ install-tools: toolsman = $(CURDIR)/debian/$(toolspkg)/usr/share/man ...@@ -87,9 +83,6 @@ install-tools: toolsman = $(CURDIR)/debian/$(toolspkg)/usr/share/man
install-tools: install-source $(stampdir)/stamp-build-perarch install-tools: install-source $(stampdir)/stamp-build-perarch
@echo Debug: $@ @echo Debug: $@
ifeq ($(do_tools),true) ifeq ($(do_tools),true)
dh_testdir
dh_testroot
dh_clean -k -p$(toolspkg)
install -d $(toolsbin) install -d $(toolsbin)
install -d $(toolsman)/man1 install -d $(toolsman)/man1
...@@ -130,8 +123,6 @@ install-indep: install-tools ...@@ -130,8 +123,6 @@ install-indep: install-tools
# binary-indep target during builds. # binary-indep target during builds.
binary-headers: install-headers binary-headers: install-headers
@echo Debug: $@ @echo Debug: $@
dh_testdir
dh_testroot
dh_installchangelogs -p$(indep_hdrpkg) dh_installchangelogs -p$(indep_hdrpkg)
dh_installdocs -p$(indep_hdrpkg) dh_installdocs -p$(indep_hdrpkg)
dh_compress -p$(indep_hdrpkg) dh_compress -p$(indep_hdrpkg)
...@@ -143,8 +134,6 @@ binary-headers: install-headers ...@@ -143,8 +134,6 @@ binary-headers: install-headers
binary-indep: install-indep binary-indep: install-indep
@echo Debug: $@ @echo Debug: $@
dh_testdir
dh_testroot
dh_installchangelogs -i dh_installchangelogs -i
dh_installdocs -i dh_installdocs -i
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment