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

glondu pushed a commit to branch master
in repository ocamlagrep.

commit 901cfc0019b4c7c09ba9025b0279340b39eff7c0
Author: Stephane Glondu <st...@glondu.net>
Date:   Thu Jul 27 06:10:12 2017 +0200

    Switch to dh
---
 debian/rules | 58 ++++++++--------------------------------------------------
 1 file changed, 8 insertions(+), 50 deletions(-)

diff --git a/debian/rules b/debian/rules
index 7a341a2..a37b524 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,66 +17,24 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
        INSTALL_PROGRAM += -s
 endif
 
-configure: configure-stamp
-configure-stamp:
-       dh_testdir
-
-       touch configure-stamp
-
-build: ocamlinit build-stamp
-build-stamp: configure-stamp
-       dh_testdir
+%:
+       dh $@ --with ocaml
 
+.PHONY: override_dh_auto_build
+override_dh_auto_build:
        $(MAKE) libagrep.a agrep.cma
 ifneq ($(OCAML_OPT_ARCH),)
        $(MAKE) agrep.cmxa
 endif
 
-       touch build-stamp
-
-clean: ocamlinit-clean
-       dh_testdir
-       dh_testroot
-
-       rm -f build-stamp configure-stamp
-       $(MAKE) clean
+.PHONY: override_dh_clean
+override_dh_clean:
        rm -rf debian/doc
 
-       dh_clean
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep
-       dh_installdirs
-
+.PHONY: override_dh_auto_install
+override_dh_auto_install:
        mkdir -p debian/tmp/$(OCAML_STDLIB_DIR)/agrep
        # Default install doesn't handle no-ocamlopt platforms
        cp $(wildcard *.cmi *.cma *.cmxa *.a *.so *.mli) 
debian/tmp/$(OCAML_STDLIB_DIR)/agrep
        mkdir -p debian/doc/html
        $(OCAML_OCAMLDOC) -html -m A -keep-code -d debian/doc/html agrep.mli
-
-binary-indep: build install
-
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install --list-missing
-       dh_installman
-       dh_link
-       dh_strip
-       dh_compress
-       dh_fixperms
-       dh_makeshlibs
-       dh_installdeb
-       dh_shlibdeps
-       dh_ocaml
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure ocamlinit

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/ocamlagrep.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