This is an automated email from the git hooks/post-receive script.

treinen pushed a commit to branch experimental/master
in repository dose3.

commit ff0af87cf420c42ce807fcec7dcd81faf2c5ca7c
Author: Ralf Treinen <trei...@free.fr>
Date:   Sat Jun 4 20:02:37 2016 +0200

    split debian/rules into -arch and -indep targets
---
 debian/clean |  4 ++++
 debian/rules | 43 ++++++++++++++++++++++++++++++-------------
 2 files changed, 34 insertions(+), 13 deletions(-)

diff --git a/debian/clean b/debian/clean
index 6529f10..b4562e0 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1 +1,5 @@
 debian/update-cudf-solvers.8
+configure-stamp
+build-stamp-arch
+build-stamp-indep
+
diff --git a/debian/rules b/debian/rules
index e01f672..7207069 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,16 +1,39 @@
 #!/usr/bin/make -f
 
 RELEASE = $(shell dpkg-parsechangelog | grep ^Version: | cut -f 2 -d' ')
+BUILDDIR= debian/tmp
+
 %:
        dh $@ --with ocaml --with autoreconf
 
-override_dh_auto_configure:
+override_dh_auto_clean:
+       ! [ -f Makefile.config ] || make distclean
+
+configure-stamp:
        dh_auto_configure -- --with-ocamlgraph --with-zip \
                        --with-bz2 --with-rpm4 \
                        --bindir=/usr/bin --libdir=/usr/lib
+       touch configure-stamp
+
+override_dh_auto_build:
+       # do nothing
+
+build-arch: build-stamp-arch
+
+build-stamp-arch: configure-stamp
+       $(MAKE)
+       pod2man --section 8 -release "apt-cudf $(RELEASE)" \
+               debian/update-cudf-solvers > debian/update-cudf-solvers.8
+       touch build-stamp-arch
+
+build-indep:
+       $(MAKE) doc
 
 override_dh_auto_install:
-       dh_auto_install
+       # do nothing
+
+override_dh_install-arch:
+       $(MAKE) install DESTDIR=$(CURDIR)/$(BUILDDIR)
        cd debian/tmp/usr/bin \
                && mv distcheck dose-distcheck \
                && mv deb-buildcheck dose-builddebcheck \
@@ -18,9 +41,8 @@ override_dh_auto_install:
                && mv challenged dose-challenged \
                && mv ceve dose-ceve \
                && mv deb-coinstall dose-deb-coinstall
-
-override_dh_installman:
-       dh_installman
+       dh_install -a
+       dh_installman -a
        cd debian/dose-distcheck/usr/share/man/man1 \
                && mv distcheck.1 dose-distcheck.1
        cd debian/dose-extra/usr/share/man/man1 \
@@ -30,15 +52,10 @@ override_dh_installman:
                && mv debcoinstall.1 dose-deb-coinstall.1
        cd debian/dose-builddebcheck/usr/share/man/man1 \
                && mv deb-buildcheck.1 dose-builddebcheck.1
+       dh_installdocs -a
 
-override_dh_auto_build:
-       dh_auto_build
-       $(MAKE) doc
-       pod2man --section 8 -release "apt-cudf $(RELEASE)" \
-               debian/update-cudf-solvers > debian/update-cudf-solvers.8
-
-override_dh_auto_clean:
-       ! [ -f Makefile.config ] || make distclean
+override_dh_install-indep:
+       dh_installdocs -i
 
 override_dh_auto_test:
        # do nothing

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/dose3.git

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to