#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk DEB_SHLIBDEPS_INCLUDE := debian/fancyqt4widgets/usr/lib/libfancyqt4widgets.so.1 DEB_DH_ALWAYS_EXCLUDE := .svn:debian-arch:debian-mingw package = mingw-5-w64-fancyqt4widgets devpackage = mingw-5-w64-fancyqt4widgets-dev package32 = mingw-5-w32-fancyqt4widgets devpackage32 = mingw-5-w32-fancyqt4widgets-dev docdir = debian/tmp/usr/share/doc/$(package) builddir = build/mingw64/release builddir32 = build/mingw32/release arch=x86_64-w64-mingw32 arch32=i686-w64-mingw32 PKGROOT=$(shell pwd)/debian # do not strip anything. # call 'strip' on a mingw lib*.a file causes the ranlib information to # be discarded rendering the libraries useless. DEB_DH_STRIP_ARGS := -Xw64-mingw32 INSTALL_PROGRAM = install common-build-indep:: cd $(builddir) && $(MAKE) arch=$(arch) cd $(builddir32) && $(MAKE) arch=$(arch32) touch common-build-indep clean:: rm -f common-install-indep common-build-indep rm -rf debian/$(package) debian/$(devpackage) rm -rf debian/$(package32) debian/$(devpackage32) rm -rf *~ debian/*~ debian/files* debian/substvars $(MAKE) -C build/mingw64/debug arch=$(arch) clean $(MAKE) -C build/mingw64/release arch=$(arch) clean $(MAKE) -C build/mingw32/debug arch=$(arch32) clean $(MAKE) -C build/mingw32/release arch=$(arch32) clean $(MAKE) -C build/unix/debug clean $(MAKE) -C build/unix/release clean common-install-indep:: rm -rf debian/$(package) debian/$(devpackage) cd $(builddir) && $(MAKE) install-bin arch=$(arch) DESTDIR=$(PKGROOT)/$(package) cd $(builddir) && $(MAKE) install-mo arch=$(arch) DESTDIR=$(PKGROOT)/$(package) cd $(builddir) && $(MAKE) install-dev arch=$(arch) DESTDIR=$(PKGROOT)/$(devpackage) rm -rf debian/$(package32) debian/$(devpackage32) cd $(builddir32) && $(MAKE) install-bin arch=$(arch32) DESTDIR=$(PKGROOT)/$(package32) cd $(builddir32) && $(MAKE) install-mo arch=$(arch32) DESTDIR=$(PKGROOT)/$(package32) cd $(builddir32) && $(MAKE) install-dev arch=$(arch32) DESTDIR=$(PKGROOT)/$(devpackage32) touch common-install-indep