#!/usr/bin/make -f # $Id: rules 1684 2015-06-03 00:36:37Z fancylibs $ DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p') DEB_DH_ALWAYS_EXCLUDE := .svn package = fancylibs docdir = debian/tmp/usr/share/doc/$(package) w64builddir = build/mingw64 arch=x86_64-w64-mingw32 %: 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 = INSTALL_PROGRAM = install override_dh_auto_build:: cd $(w64builddir) && $(MAKE) arch=$(arch) clean:: rm -f common-install-indep common-build-indep rm -rf *~ debian/mingw-8-w64-fancylaunch debian/substvars $(MAKE) -C build/mingw64 arch=$(arch) clean $(MAKE) -C build/unix clean override_dh_auto_install:: rm -rf debian/mingw-8-w64-fancylaunch mkdir -p debian/mingw-8-w64-fancylaunch/usr/$(arch)/bin cp -p $(w64builddir)/fancylaunch.exe $(w64builddir)/fancylaunchw.exe debian/mingw-8-w64-fancylaunch/usr/$(arch)/bin