# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifeq "$(strip $(LAUNCHER))" "yes"
LAUNCHER_DEPENDS = -Vlauncher:Depends="maemo-launcher"
LAUNCHER_CFLAGS = -shared
ifeq "$(strip $(LAUNCHER))" "yes"
LAUNCHER_DEPENDS = -Vlauncher:Depends="maemo-launcher"
LAUNCHER_CFLAGS = -shared
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
configure: configure-stamp
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
configure: configure-stamp
- ifeq "$(strip $(LAUNCHER))" "yes"
- mv $(CURDIR)/debian/modest/usr/bin/modest \
- $(CURDIR)/debian/modest/usr/bin/modest.launch
+ifeq "$(strip $(LAUNCHER))" "yes"
+ mv $(CURDIR)/debian/tmp/usr/bin/modest \
+ $(CURDIR)/debian/modest/usr/bin/modest.launch