#!/usr/bin/make -f # # $Id: rules 180 2014-08-04 19:18:51Z pba $ # # rules file for creating debian packages # include /usr/share/cdbs/1/rules/debhelper.mk DEB_DH_ALWAYS_EXCLUDE = .svn:debian/tmp #srcname = fancypkcs11 package = fancypkcs11 builddir = $(shell /bin/pwd)/build/unix/release PKGROOT=$(shell pwd)/debian INSTALL_PROGRAM = install DEB_INSTALL_DOCS_ALL := doc/LICENSE.txt doc/ReadMe.txt common-build-arch:: cd $(builddir) && $(MAKE) 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 common-install-arch:: rm -rf $(PKGROOT)/$(package) mkdir -p $(PKGROOT)/$(package) cd $(builddir) && $(MAKE) install-bin DESTDIR=$(PKGROOT)/$(package) touch common-install-arch