[Pkg-wmaker-commits] [wmshutdown] 55/173: debian/rules: new dh(1) syntax

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 25 02:46:25 UTC 2015


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

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

commit bb166e9825ab5c0378b106c72ec6bb7eb428d001
Author: Jari Aalto <jari.aalto at cante.net>
Date:   Thu Dec 17 12:25:06 2009 +0200

    debian/rules: new dh(1) syntax
---
 debian/rules | 57 +++++++++++++++++----------------------------------------
 1 file changed, 17 insertions(+), 40 deletions(-)

diff --git a/debian/rules b/debian/rules
index 09a1cbc..d55757f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,7 @@
 
 PACKAGE 	= wmshutdown
 PACKAGE2	= wmshutdown-run
-
-include debian/debian-vars.mk
-include /usr/share/dpatch/dpatch.make
+PKGDIR		= $(CURDIR)/debian/$(PACKAGE)
 
 MANSECT         = 1
 MANPAGE1        = debian/$(PACKAGE).$(MANSECT)
@@ -22,29 +20,7 @@ man:
 	$(MAKE) -C debian -f $(MK_MAN) PACKAGE=$(PACKAGE2) \
 	MANSECT=$(MANSECT) makeman
 
-.PHONY: man
-
-build-stamp: man
-	# target: build-stamp
-	dh_testdir
-	$(MAKE)
-	touch build-stamp
-
-build: patch build-stamp man
-
-clean: unpatch
-	# target: clean
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-
-	rm -f wmshutdown-run wmshutdown
-	[ ! -f Makefile ] || $(MAKE) clean
-
-	rm -f debian/*.$(MANSECT)
-	dh_prep
-
-install: build
+install: build man
 	# target: install
 	dh_testdir
 	dh_testroot
@@ -53,21 +29,16 @@ install: build
 
 	$(MAKE) install DESTDIR=$(PKGDIR)
 
-	# Won't make a difference: .deb will not preserve this
-	# See README.Debian
-	# chmod ug+s $(BINDIR)/$(PACKAGE2)
-
-# Build architecture-independent files here.
-binary-indep: build install
-	# We have nothing to do by default.
+	# Won't make a difference: *.deb will not preserve this.
+	#   chmod ug+s $(BINDIR)/$(PACKAGE2)
+	# Instructions recorded in README.Debian
 
-# Build architecture-dependent files here.
 binary-arch: build install
-	# target: binary-arch
+	# target: binary-arch -- Build architecture-dependent files
 	dh_testdir
 	dh_testroot
 #	dh_installdebconf
-	dh_installdocs README
+	dh_installdocs
 #	dh_installexamples
 	dh_installmenu
 #	dh_installlogrotate
@@ -76,7 +47,7 @@ binary-arch: build install
 #	dh_installmime
 #	dh_installinit
 	dh_installcron
-	dh_installman debian/*.$(MANSECT)
+	dh_installman
 	dh_installinfo
 #	dh_undocumented
 	dh_installchangelogs ChangeLog
@@ -92,6 +63,12 @@ binary-arch: build install
 	dh_md5sums
 	dh_builddeb
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
-.PHONY: man
+binary: binary-arch
+
+%:
+	dh $@
+
+.PHONY: man install configure
+.PHONY: binary-indep binary-arch binary
+
+# End of file

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



More information about the Pkg-wmaker-commits mailing list