[Pkg-wmaker-commits] [wmcliphist] 39/49: debian/rules: Update to use dh.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 18 01:51:37 UTC 2015


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

dtorrance-guest pushed a commit to branch master
in repository wmcliphist.

commit 4e262b2bc371a4a6fe7e4c97c4093abbb80d0277
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sun Nov 23 07:50:00 2014 -0600

    debian/rules: Update to use dh.
---
 debian/rules | 79 +++++-------------------------------------------------------
 1 file changed, 6 insertions(+), 73 deletions(-)

diff --git a/debian/rules b/debian/rules
index ee62aa6..0212005 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,77 +1,10 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+	dh $@
 
+override_dh_auto_build:
+	dh_auto_build -- PREFIX=/usr
 
-
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-
-include /usr/share/dpatch/dpatch.make
-
-build: build-stamp
-
-build-stamp: patch-stamp
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE)
-	/usr/bin/docbook-to-man debian/wmcliphist.sgml > debian/wmcliphist.1
-
-	touch build-stamp
-
-clean: unpatch
-	dh_testdir
-	dh_testroot
-
-	rm -f debian/wmcliphist.1
-	rm -f build-stamp configure-stamp
-
-	# Add here commands to clean up after the build process.
-	-$(MAKE) clean
-	-$(MAKE) -C foodock clean
-	rm -f debian/wmcliphistrc
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	dh_installdirs
-
-	# Add here commands to install the package into debian/wmcliphist.
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/wmcliphist/usr/bin
-	cp .wmcliphistrc debian/wmcliphistrc
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs ChangeLog
-	dh_installdocs
-	dh_installmenu
-	dh_installman debian/wmcliphist.1
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+override_dh_auto_install:
+	dh_auto_install -- PREFIX=/usr

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcliphist.git



More information about the Pkg-wmaker-commits mailing list