[mupen64plus-input-sdl] 11/196: Simplify makefile using dh's 7.3.7 --sourcedirectory option

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:00:02 UTC 2015


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

ecsv-guest pushed a commit to branch master
in repository mupen64plus-input-sdl.

commit cce75cd73ff512e6afd0cfc0a817ce48994f59d8
Author: Sven Eckelmann <sven.eckelmann at gmx.de>
Date:   Mon Mar 1 01:01:30 2010 +0100

    Simplify makefile using dh's 7.3.7 --sourcedirectory option
---
 debian/control |  2 +-
 debian/rules   | 12 +++---------
 2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/debian/control b/debian/control
index 667b07f..205565d 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Homepage: http://code.google.com/p/mupen64plus/
 Standards-Version: 3.8.4
 Vcs-Browser: http://git.debian.org/?p=collab-maint/mupen64plus-input-sdl.git
 Vcs-Git: git://git.debian.org/git/collab-maint/mupen64plus-input-sdl.git
-Build-Depends: debhelper (>= 7.0.50), libmupen64plus-dev, libsdl1.2-dev
+Build-Depends: debhelper (>= 7.3.7), libmupen64plus-dev, libsdl1.2-dev
 
 Package: mupen64plus-input-sdl
 Architecture: i386 amd64 kfreebsd-amd64 kfreebsd-i386
diff --git a/debian/rules b/debian/rules
index aa1c302..f4c0132 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,22 +5,16 @@ DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
 %:
-	dh $@
+	dh $@ --sourcedirectory="projects/unix"
 
 get-orig-source:
 	uscan --verbose --force-download
 
 override_dh_auto_build:
-	cd "$(CURDIR)/projects/unix/" && \
-		LDFLAGS='-Wl,--as-needed' $(MAKE) UNAME='$(DEB_HOST_ARCH_OS)' HOST_CPU='$(DEB_HOST_GNU_CPU)' APIDIR=/usr/include/mupen64plus/ DEBUG=1 all
-
-override_dh_auto_clean:
-	cd "$(CURDIR)/projects/unix/" && \
-		$(MAKE) clean
+	LDFLAGS='-Wl,--as-needed' dh_auto_build -- UNAME='$(DEB_HOST_ARCH_OS)' HOST_CPU='$(DEB_HOST_GNU_CPU)' APIDIR=/usr/include/mupen64plus/ DEBUG=1 all
 
 override_dh_auto_install:
-	cd "$(CURDIR)/projects/unix/" && \
-		$(MAKE) DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr/ install
+	dh_auto_install -- DESTDIR="$(CURDIR)/debian/tmp" PREFIX=/usr/ install
 
 override_dh_strip:
 	dh_strip -a --dbg-package=mupen64plus-input-sdl-dbg

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-input-sdl.git



More information about the Pkg-games-commits mailing list