#!/usr/bin/make -f # # $Id: rules 168 2014-01-08 17:11:46Z pba $ # # rules file for creating debian packages # DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p') #prefix=/usr package32 = mingw-7-w32-pba-helloworld-portable builddir32 = build/win32/release arch32=i686-w64-mingw32 target32=i686-w64-mingw32 prefix32=/usr/$(target32) docdir32 = debian/$(package32)/usr/share/doc/$(package32) DESTDIR32 = $(shell /bin/pwd)/debian/$(package32) package64 = mingw-7-w64-pba-helloworld-portable builddir64 = build/win64/release arch64=x86_64-w64-mingw32 target64 = x86_64-w64-mingw32 prefix64=/usr/$(target64) docdir64 = debian/$(package64)/usr/share/doc/$(package64) DESTDIR64 = $(shell /bin/pwd)/debian/$(package64) DEB_DH_ALWAYS_EXCLUDE := .svn:debian-arch:debian-mingw DEB_INSTALL_DOCS_ALL := doc/LICENSE.txt doc/ReadMe.txt DEB_SHLIBDEPS_INCLUDE := %: 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 $(builddir32) && $(MAKE) arch=$(arch32) cd $(builddir64) && $(MAKE) arch=$(arch64) touch common-build-arch clean:: rm -f common-install-arch common-build-arch cd $(builddir32) && $(MAKE) arch=$(arch32) clean cd $(builddir64) && $(MAKE) arch=$(arch64) clean rm -f common-build-arch rm -f common-install-arch common-install-indep:: rm -rf debian/$(package32) cd $(builddir32) && $(MAKE) install-bin DESTDIR=$(DESTDIR32)/$(package32) prefix=$(prefix32) rm -rf debian/$(package64) cd $(builddir64) && $(MAKE) install-bin DESTDIR=$(DESTDIR64)/$(package64) prefix=$(prefix64) touch common-install-arch