#!/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 = fancygpsdclient package = fancygpsdclient devpackage = fancygpsdclient-dev builddir = $(shell /bin/pwd)/build/unix/release #destdir = $(shell /bin/pwd)/debian/tmp 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/$(package) 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 DESTDIR=$(destdir) $(MAKE) -C $(builddir) arch=$(arch) DESTDIR=$(PKGROOT)/$(package) install-bin $(MAKE) -C $(builddir) arch=$(arch) DESTDIR=$(PKGROOT)/$(devpackage) install-dev touch common-install-arch