# 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
- MAEMO_LAUNCHER_CFLAGS="$(LAUNCHER_CFLAGS)" \
- MAEMO_LAUNCHER_LDFLAGS="$(LAUNCHER_LDFLAGS)"
- #/usr/bin/docbook-to-man debian/osso-sketch.sgml > osso-sketch.1
-
+ MAEMO_LAUNCHER_CFLAGS="$(LAUNCHER_CFLAGS)" \
+ MAEMO_LAUNCHER_LDFLAGS="$(LAUNCHER_LDFLAGS)"
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
ifeq "$(strip $(LAUNCHER))" "yes"
mv $(CURDIR)/debian/tmp/usr/bin/modest \
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
ifeq "$(strip $(LAUNCHER))" "yes"
mv $(CURDIR)/debian/tmp/usr/bin/modest \