#!/usr/bin/make -f # # $Id$ # # rules file for creating debian packages # DEB_DH_ALWAYS_EXCLUDE = .svn:debian/tmp #srcname = pba-hellobigworld-portable package = pba-hellobigworld-portable builddir = $(shell /bin/pwd)/build/unix/release PKGROOT=$(shell pwd)/debian INSTALL_PROGRAM = install DEB_INSTALL_DOCS_ALL := doc/LICENSE.txt doc/ReadMe.txt arch=$(DEB_HOST_GNU_TYPE) %: dh $@ override_dh_strip: dh_strip -p$(package) --dbg-package=$(package)-dbg override_dh_auto_build: $(MAKE) -C $(builddir) arch=$(arch) touch common-build-arch clean:: cd $(builddir) && $(MAKE) clean rm -rf debian/*.subvars debian/*.log debian/$(package) rm -f common-build-arch rm -f common-install-arch override_dh_auto_install: rm -rf $(PKGROOT)/$(package) mkdir -p $(PKGROOT)/$(package) $(MAKE) -C $(builddir) arch=$(arch) DESTDIR=$(PKGROOT)/$(package) install-bin touch common-install-arch