#!/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 = fancysane libpackage = libfancysane1 devpackage = libfancysane1-dev toolpackage = fancysane-tool 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) common-build-arch:: $(MAKE) -C $(builddir) arch=$(arch) touch common-build-arch clean:: $(MAKE) -C $(builddir) arch=$(arch) clean rm -rf debian/*.subvars debian/*.log debian/$(libpackage) debian/$(devpackage) debian/$(toolpackage) rm -f common-build-arch rm -f common-install-arch common-install-arch:: rm -rf $(PKGROOT)/$(libpackage) mkdir -p $(PKGROOT)/$(libpackage) rm -rf $(PKGROOT)/$(devpackage) mkdir -p $(PKGROOT)/$(devpackage) rm -rf $(PKGROOT)/$(toolpackage) mkdir -p $(PKGROOT)/$(toolpackage) $(MAKE) -C $(builddir)/modules/libfancysane arch=$(arch) DESTDIR=$(PKGROOT)/$(libpackage) install-bin $(MAKE) -C $(builddir)/modules/libfancysane arch=$(arch) DESTDIR=$(PKGROOT)/$(devpackage) install-dev $(MAKE) -C $(builddir)/programs/fancysane-server arch=$(arch) DESTDIR=$(PKGROOT)/$(libpackage) install-bin $(MAKE) -C $(builddir)/programs/fancysane-tool arch=$(arch) DESTDIR=$(PKGROOT)/$(toolpackage) install-bin touch common-install-arch