From 474c496e8851e4f940abab0dc7aeea7fe7dabcf9 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 8 Oct 2008 19:40:31 +0200 Subject: Adapt package to new source layout. --- debian/rules | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 3e148bf..0a474b9 100755 --- a/debian/rules +++ b/debian/rules @@ -2,11 +2,13 @@ include /usr/share/dpatch/dpatch.make +SRCDIR=src + configure: configure-stamp configure-stamp: patch-stamp dh_testdir - qmake-qt4 lfhex.pro + cd $(SRCDIR) && qmake-qt4 lfhex.pro touch configure-stamp @@ -15,7 +17,7 @@ build: build-stamp build-stamp: configure-stamp dh_testdir - $(MAKE) + cd $(SRCDIR) && $(MAKE) touch $@ @@ -24,8 +26,8 @@ clean: unpatch dh_testroot rm -f build-stamp configure-stamp - [ ! -f Makefile ] || $(MAKE) clean - rm -f Makefile lfhex + cd $(SRCDIR) && ([ ! -f Makefile ] || $(MAKE) clean) + rm -f $(SRCDIR)/Makefile $(SRCDIR)/lfhex dh_clean @@ -37,7 +39,7 @@ install: build # Do a manual install, qmake does not correctly generate an install # target - install -D -m755 -p lfhex $(CURDIR)/debian/lfhex/usr/bin/lfhex + cd $(SRCDIR) && install -D -m755 -p lfhex $(CURDIR)/debian/lfhex/usr/bin/lfhex # Build architecture-independent files here. binary-indep: -- cgit v1.2.3-54-g00ecf