[Pkg-wmaker-commits] [wmdiskmon] 11/25: debian/rules: Use dh with dh_autoreconf.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Jan 30 20:51:48 UTC 2016


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

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

commit a6e97621f0be69a048504c874428ab440f907185
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Fri Jan 29 15:28:44 2016 -0500

    debian/rules: Use dh with dh_autoreconf.
---
 debian/rules | 75 ++----------------------------------------------------------
 1 file changed, 2 insertions(+), 73 deletions(-)

diff --git a/debian/rules b/debian/rules
index 9aacbcf..dd9063b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,75 +1,4 @@
 #!/usr/bin/make -f
 
-TMP=$(CURDIR)/debian/wmdiskmon
-
-CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-        CFLAGS += -O0
-else
-        CFLAGS += -O2
-endif
-
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	if [ -r /usr/share/misc/config.sub ]; then\
-		mv $(CURDIR)/config.sub $(CURDIR)/config.sub.backup;\
-		cp /usr/share/misc/config.sub $(CURDIR)/config.sub;\
-	fi
-	if [ -r /usr/share/misc/config.guess ]; then\
-		mv $(CURDIR)/config.guess $(CURDIR)/config.guess.backup;\
-		cp /usr/share/misc/config.guess $(CURDIR)/config.guess;\
-	fi
-	CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir=/usr/share/man
-	touch configure-stamp
-
-build: configure build-stamp
-build-stamp:
-	dh_testdir
-	$(MAKE)
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	[ ! -f Makefile ] || $(MAKE) maintainer-clean
-	if [ -r $(CURDIR)/config.sub.backup ]; then\
-		mv $(CURDIR)/config.sub.backup $(CURDIR)/config.sub;\
-	fi
-	if [ -r $(CURDIR)/config.guess.backup ]; then\
-		mv $(CURDIR)/config.guess.backup $(CURDIR)/config.guess;\
-	fi
-	dh_clean build-stamp install-stamp configure-stamp config.log
-
-install: install-stamp
-install-stamp: build-stamp
-	dh_testdir
-	dh_testroot
-	dh_prep
-	$(MAKE) install DESTDIR=$(TMP)
-	touch install-stamp
-
-# 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_installdocs
-	dh_installexamples
-	dh_installmenu
-	dh_installmanpages
-	dh_installchangelogs ChangeLog
-	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
+%:
+	dh $@ --with autoreconf

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



More information about the Pkg-wmaker-commits mailing list