#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk qmkspecdir=/usr/i686-pc-mingw32/share/qt4/mkspecs package = mingw-w32-qt4-qmake docdir = debian/$(package)/usr/share/doc/$(package) mkspecname = mingw-w32-cross basedir=qt-everywhere-opensource-src DEB_INSTALL_DOCS_ALL := DEB_SHLIBDEPS_INCLUDE := DEB_DH_ALWAYS_EXCLUDE := .svn INSTALL_PROGRAM = install clean:: rm -f common-compile-arch common-install-arch rm -rf *~ debian/$(package) debian/*~ debian/files* debian/substvars debian/compat cd $(basedir); make clean || /bin/true cd $(basedir)/src/tools/uic; make confclean || /bin/true cd $(basedir)/src/tools/rcc; make confclean || /bin/true cd $(basedir)/src/tools/moc; make confclean || /bin/true cd $(basedir)/src/tools/bootstrap; make confclean || /bin/true rm -rf $(basedir)/bin $(basedir)/Makefile $(basedir)/Makefile.bak common-compile-arch:: rm -rf $(basedir)/bin mkdir $(basedir)/bin cd $(basedir); echo yes | sh ./configure \ -prefix /usr/i686-pc-mingw32 \ -demosdir /usr/i686-pc-mingw32/lib/qt4/demos \ -examplesdir /usr/i686-pc-mingw32/lib/qt4/examples \ -importdir /usr/i686-pc-mingw32/lib/qt4/imports \ -plugindir /usr/i686-pc-mingw32/lib/qt4/plugins \ -headerdir /usr/i686-pc-mingw32/include/qt4 \ -datadir /usr/i686-pc-mingw32/share/qt4 \ -translationdir /usr/i686-pc-mingw32/share/qt4/translations \ -docdir /usr/i686-pc-mingw32/share/qt4/doc \ -opensource -optimized-qmake make -C $(basedir)/src/tools/bootstrap make -C $(basedir)/src/tools/moc make -C $(basedir)/src/tools/rcc make -C $(basedir)/src/tools/uic touch common-compile-arch common-install-arch:: common-compile-arch rm -rf debian/$(package) mkdir -p debian/$(package)/usr/bin cp -p $(basedir)/bin/qmake debian/$(package)/usr/bin/i686-pc-mingw32-qmake-qt4 cp -p $(basedir)/bin/moc debian/$(package)/usr/bin/i686-pc-mingw32-moc-qt4 cp -p $(basedir)/bin/rcc debian/$(package)/usr/bin/i686-pc-mingw32-rcc-qt4 cp -p $(basedir)/bin/uic debian/$(package)/usr/bin/i686-pc-mingw32-uic-qt4 mkdir -p debian/$(package)$(qmkspecdir)/$(mkspecname) cp -p mkspecs/$(mkspecname)/qmake.conf debian/$(package)$(qmkspecdir)/$(mkspecname) cp -p mkspecs/$(mkspecname)/qplatformdefs.h debian/$(package)$(qmkspecdir)/$(mkspecname) cd debian/$(package)$(qmkspecdir); ln -s $(mkspecname) default touch common-install-arch