[Pkg-wmaker-commits] [wmfsm] 44/83: debian/rules: Update to use dh with dh_autoreconf.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sun Aug 23 14:05:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmfsm.
commit 78f92da65c4e33f8510562236276f31d378155c3
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Thu Jan 22 08:48:12 2015 -0600
debian/rules: Update to use dh with dh_autoreconf.
---
debian/rules | 85 ++----------------------------------------------------------
1 file changed, 2 insertions(+), 83 deletions(-)
diff --git a/debian/rules b/debian/rules
index 7718a82..dd9063b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,85 +1,4 @@
#!/usr/bin/make -f
-dest = $(shell pwd)/debian/wmfsm/usr/
-
-CFLAGS=-Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS+=-O0
-else
- CFLAGS+=-O2
-endif
-ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- STRIPARGS= --no-act
-endif
-
-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
-
-build: build-stamp
-build-stamp:
- dh_testdir
-
- ./configure --prefix=/usr --mandir=\$${prefix}/share/man $(confflags)
- $(MAKE) CFLAGS="$(CFLAGS)"
-
- cat ChangeLog ChangeLog.old > debian/upstreamchangelog
-
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp
- rm -f debian/upstreamchangelog
-
- [ ! -f Makefile ] || $(MAKE) distclean
-
- -test -r /usr/share/misc/config.sub && \
- cp -f /usr/share/misc/config.sub config.sub
- -test -r /usr/share/misc/config.guess && \
- cp -f /usr/share/misc/config.guess config.guess
-
- # fix timestamps which are wrong in .orig.tar.gz
- find . -name Makefile.am -exec touch {} \;
- find . -name configure.in -exec touch {} \;
- find . -name aclocal.m4 -exec touch {} \;
- find . -name configure -exec touch {} \;
- find . -name config.h.in -exec touch {} \;
- find . -name Makefile.in -exec touch {} \;
- find . -name config.h -exec touch {} \;
- find . -name Makefile -exec touch {} \;
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
- $(MAKE) install prefix=$(dest)
-
-binary-indep: build install
-
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installdocs
- dh_installexamples
- dh_installmenu
- dh_installmanpages
- dh_installchangelogs debian/upstreamchangelog
- dh_link
- dh_strip $(STRIPARGS)
- 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/wmfsm.git
More information about the Pkg-wmaker-commits
mailing list