[Pkg-wmaker-commits] [wmmemload] 16/103: debian/rules: Update to use dh.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 03:11:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmmemload.
commit e9e1e36d7735137ae85a51551c2ef591ca41c169
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Fri Oct 3 23:13:39 2014 -0500
debian/rules: Update to use dh.
---
debian/rules | 133 +----------------------------------------------------------
1 file changed, 2 insertions(+), 131 deletions(-)
diff --git a/debian/rules b/debian/rules
index 8066906..b4afc50 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,133 +1,4 @@
#!/usr/bin/make -f
-#export DH_VERBOSE=1
-
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- confflags += --build $(DEB_HOST_GNU_TYPE)
-else
- confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-endif
-
-
-CFLAGS=-W -Wall
-INSTALL=/usr/bin/install
-INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
-INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
-
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
-include /usr/share/quilt/quilt.make
-
-config: config-stamp
-config-stamp:
- dh_testdir
-
- if [ -r /usr/share/misc/config.sub ] && [ ! -f config.sub.backup ]; then \
- mv -v config.sub config.sub.backup; \
- cp -f /usr/share/misc/config.sub $(CURDIR)/config.sub; \
- fi
-
- if [ -r /usr/share/misc/config.guess ] && [ ! -f config.guess.backup ]; then \
- mv -v config.guess config.guess.backup; \
- cp -f /usr/share/misc/config.guess $(CURDIR)/config.guess; \
- fi
-
- touch $@
-
-config-clean:
- dh_testdir
- dh_testroot
-
- if [ -f config.sub.backup ]; then \
- mv -fv config.sub.backup config.sub; \
- fi
-
- if [ -f config.guess.backup ]; then \
- mv -fv config.guess.backup config.guess; \
- fi
-
- $(RM) config-stamp
-
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
-
- ./configure $(confflags) \
- --prefix=/usr \
- --mandir=\$${prefix}/share/man \
- --infodir=\$${prefix}/share/info
-
- touch $@
-
-
-build: build-arch build-indep
-build-arch: patch config configure-stamp build-stamp
-build-indep: patch config configure-stamp build-stamp
-build-stamp:
- dh_testdir
-
-# <bugfix>
-# do not run automake, autoconf, or autoheader
- touch aclocal.m4 Makefile.in src/Makefile.in doc/Makefile.in configure stamp-h.in
-# </bugfix>
- $(MAKE) CFLAGS="$(CFLAGS)" INSTALL_PROGRAM="$(INSTALL_PROGRAM)"
-
- touch $@
-
-clean: config-clean unpatch
- dh_testdir
- dh_testroot
-
- [ ! -f Makefile ] || $(MAKE) distclean
-
- $(RM) build-stamp configure-stamp stamp-h
- $(RM) config.log
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- $(MAKE) install prefix=$(CURDIR)/debian/wmmemload/usr
-
-
-# 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 AUTHORS THANKS
- dh_installmenu
- dh_installchangelogs ChangeLog
- dh_link
- 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
+%:
+ dh $@ --with autoreconf
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmemload.git
More information about the Pkg-wmaker-commits
mailing list