[fenix-plugins] 44/60: Shorten the rules file using the dh(1) helper.
Peter Pentchev
roam at ringlet.net
Mon Dec 21 14:16:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
roam-guest pushed a commit to branch master
in repository fenix-plugins.
commit 7807be570ab93741e98330c2add9699ebe3cd47f
Author: Peter Pentchev <roam at ringlet.net>
Date: Fri Feb 26 23:44:19 2010 +0000
Shorten the rules file using the dh(1) helper.
---
debian/changelog | 4 ++--
debian/rules | 60 +++++++++++++++++---------------------------------------
2 files changed, 20 insertions(+), 44 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 9072f5b..d555771 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
fenix-plugins (0.0.20070803-4) UNRELEASED; urgency=low
- TODO: debhelper: dh, overrides, then 8
+ TODO: debhelper: overrides, then 8
TODO: dh --with autotools_dev
TODO: dpkg-buildflags
@@ -28,7 +28,7 @@ fenix-plugins (0.0.20070803-4) UNRELEASED; urgency=low
* Add a dummy watch file explaining why there is no watch file.
* Bump Standards-Version to 3.9.1 with no changes.
* Bump the debhelper compatibility level to 7:
- - use dh_prep instead of dh_clean -k
+ - shorten the rules file using the dh(1) helper
-- Peter Pentchev <roam at ringlet.net> Thu, 25 Nov 2010 16:09:06 +0200
diff --git a/debian/rules b/debian/rules
index b5f3aec..32f5c52 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,18 +11,6 @@ else
CFLAGS += -O2
endif
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- for i in */ ; do \
- if [ -e "$$i/configure.ac" ]; then \
- cp -f /usr/share/misc/config.sub "$$i/config.sub" ; \
- cp -f /usr/share/misc/config.guess "$$i/config.guess" ; \
- cp -f /usr/share/libtool/config/ltmain.sh "$$i/ltmain.sh" ; \
- fi \
- done
- touch $@
-
PLUGINS = \
plugins/fgfx.so plugins/agua.so plugins/fire.so \
plugins/ttf.so plugins/image.so plugins/net.so \
@@ -30,51 +18,39 @@ PLUGINS = \
plugins/tcpsock.so plugins/fsock.so
build: build-stamp
-build-stamp: configure-stamp
- dh_testdir
- $(MAKE) \
+build-stamp:
+ dh build --before auto_build
+ for i in */ ; do \
+ if [ -e "$$i/configure.ac" ]; then \
+ cp -f /usr/share/misc/config.sub "$$i/config.sub" ; \
+ cp -f /usr/share/misc/config.guess "$$i/config.guess" ; \
+ cp -f /usr/share/libtool/config/ltmain.sh "$$i/ltmain.sh" ; \
+ fi \
+ done
+ dh_auto_build -- \
CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" \
CONFFLAGS="--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)" \
$(PLUGINS)
- $(MAKE) check
+ dh build --remaining
touch $@
clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
- $(MAKE) fullclean
- dh_clean
+ dh $@ --before auto_clean
+ dh_auto_clean -- fullclean
rm -f */ltmain.sh
+ dh $@ --remaining
install: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
+ dh $@
# Build architecture-independent files here.
binary-indep: build install
+ dh $@
# Build architecture-dependent files here.
binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
- dh_install
- dh_installman
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
-# dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ dh $@ --before makeshlibs
+ dh $@ --after makeshlibs
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/fenix-plugins.git
More information about the Pkg-games-commits
mailing list