Skip to content

Commit

Permalink
Set qmake DESTDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
piotras committed May 17, 2010
1 parent bb996b7 commit 1940654
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions dists/OBS/debian.rules
Expand Up @@ -8,46 +8,28 @@ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)

deb_section=

CONFIGURE_FLAGS=\
--prefix=/usr\

switch-arch:
sed -e 's/Architecture: any/Architecture: ${DEB_BUILD_ARCH}/g' debian/control > control.dummy
mv control.dummy debian/control

build: build-stamp
build-stamp: configure-stamp
dh_testdir
qmake
$(MAKE) pkgdatadir=/usr/share/midgard
touch $@

configure: configure-stamp
configure-stamp:
dh_testdir
cp -f /usr/share/misc/config.guess .
cp -f /usr/share/misc/config.sub .
./configure ${CONFIGURE_FLAGS}
touch $@

clean:
dh_testdir
-$(MAKE) distclean
rm -f build-stamp configure-stamp
rm -f Makefile
rm -f src/Makefile
dh_clean

install: DH_OPTIONS=
install: build
install:
dh_testdir
dh_testroot
dh_clean
dh_installdirs
$(MAKE) install \
INSTALL='/usr/bin/install -c -o root -g root' \
DESTDIR=`pwd`/debian/tmp
dh_install --sourcedir=debian/tmp
qmake DESTDIR=${PWD}/debian/midgard2-runtime/usr/bin
$(MAKE)
$(MAKE) install
dh_install --sourcedir=`pwd`/debian/midgard2-runtime

binary-indep: DH_OPTIONS=-i
binary-indep:
Expand Down

0 comments on commit 1940654

Please sign in to comment.