[Pkg-wmaker-commits] [wmclockmon.git] 13/31: debian/rules: Use dh with dh_autoreconf.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Wed Feb 17 10:49: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 wmclockmon.git.
commit 2636979de4b13ddd7011a5d608140edb06484257
Author: Doug Torrance <dtorrance at piedmont.edu>
Date: Wed Jan 27 22:49:38 2016 -0500
debian/rules: Use dh with dh_autoreconf.
---
debian/rules | 77 ++----------------------------------------------------------
1 file changed, 2 insertions(+), 75 deletions(-)
diff --git a/debian/rules b/debian/rules
index 1bea238..dd9063b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,77 +1,4 @@
#!/usr/bin/make -f
-TMP=$(CURDIR)/debian/wmclockmon
-
-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
- rm -f build-stamp install-stamp configure-stamp
- [ ! -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
- rm -f config.h config.log config.status stamp-h Makefile src/Makefile doc/Makefile wmclockmon-config/Makefile wmclockmon-cal/Makefile
- dh_clean
-
-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/wmclockmon.git.git
More information about the Pkg-wmaker-commits
mailing list