#!/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 commonpackage = fancylogd-common commondevpackage = fancylogd-common-dev clientpackage = fancylogd-client clientdevpackage = fancylogd-client-dev daemonpackage = fancylogd 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 rm -rf debian/$(commonpackage) debian/$(commondevpackage) debian/$(clientpackage) debian/$(clientdevpackage) debian/$(daemonpackage) rm -f common-build-arch rm -f common-install-arch common-install-arch:: rm -rf debian/$(commonpackage) debian/$(commondevpackage) debian/$(clientpackage) debian/$(clientdevpackage) debian/$(daemonpackage) $(MAKE) -C $(builddir)/modules/fancylogd-common arch=$(arch) DESTDIR=$(PKGROOT)/$(commonpackage) install-bin $(MAKE) -C $(builddir)/modules/fancylogd-common arch=$(arch) DESTDIR=$(PKGROOT)/$(commondevpackage) install-dev $(MAKE) -C $(builddir)/modules/fancylogd-client arch=$(arch) DESTDIR=$(PKGROOT)/$(clientpackage) install-bin $(MAKE) -C $(builddir)/modules/fancylogd-client arch=$(arch) DESTDIR=$(PKGROOT)/$(clientdevpackage) install-dev $(MAKE) -C $(builddir)/programs/fancylogd arch=$(arch) DESTDIR=$(PKGROOT)/$(daemonpackage) install-bin touch common-install-arch