[Pkg-ocaml-maint-commits] [ocamlagrep] 05/07: Switch to dh

Stéphane Glondu glondu at moszumanska.debian.org
Thu Jul 27 04:27:42 UTC 2017


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 <steph at 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



More information about the Pkg-ocaml-maint-commits mailing list