#!/usr/bin/make -f # # $Id$ # # rules file for creating debian packages # include /usr/share/cdbs/1/rules/debhelper.mk DEB_DH_ALWAYS_EXCLUDE = .svn:debian/tmp #srcname = fancypcsc package = fancypcsc devpackage = fancypcsc-dev 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) debian/$(devpackage) rm -f common-build-arch rm -f common-install-arch common-install-arch:: rm -rf $(PKGROOT)/$(package) $(PKGROOT)/$(devpackage) mkdir -p $(PKGROOT)/$(package) $(PKGROOT)/$(devpackage) cd $(builddir) && $(MAKE) install-bin DESTDIR=$(PKGROOT)/$(package) cd $(builddir) && $(MAKE) install-dev DESTDIR=$(PKGROOT)/$(devpackage) touch common-install-arch