#!/usr/bin/make -f # $Id: rules 1689 2015-06-07 12:16:00Z fancylibs $ DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p') DEB_SHLIBDEPS_INCLUDE := #debian/fancy3qt4/usr/lib/libfancy3qt4.so.1 DEB_DH_ALWAYS_EXCLUDE := .svn:debian-arch:debian-mingw package = mingw-7-w64-fancy3qt4 devpackage = mingw-7-w64-fancy3qt4-dev package32 = mingw-7-w32-fancy3qt4 devpackage32 = mingw-7-w32-fancy3qt4-dev docdir = debian/tmp/usr/share/doc/$(package) builddir = build/minx64/release builddir32 = build/minx32/release arch=x86_64-w64-mingw32 arch32=i686-w64-mingw32 PKGROOT=$(shell pwd)/debian %: dh $@ # do not strip anything. # call 'strip' on a mingw lib*.a file causes the ranlib information to # be discarded rendering the libraries useless. override_dh_strip: override_dh_shlibdeps: export DEB_CFLAGS_MAINT_SET = -O2 -Wall export DEB_LDFLAGS_MAINT_SET = build-indep: common-build-indep install-indep: common-install-indep 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 debian/devhost.txt.gz debian/*.substvars and debian/*.debhelper.log $(MAKE) -C build/minx64/debug arch=$(arch) clean $(MAKE) -C build/minx64/release arch=$(arch) clean $(MAKE) -C build/minx32/debug arch=$(arch32) clean $(MAKE) -C build/minx32/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-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-dev arch=$(arch32) DESTDIR=$(PKGROOT)/$(devpackage32) touch common-install-indep