#!/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 = fancyqmi package = libfancyqmi1 devpackage = libfancyqmi1-dev toolpackage = fancyqmi-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 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) debian/$(toolpackage) rm -f common-build-arch rm -f common-install-arch common-install-arch:: rm -rf $(PKGROOT)/$(package) mkdir -p $(PKGROOT)/$(package) rm -rf $(PKGROOT)/$(devpackage) mkdir -p $(PKGROOT)/$(devpackage) rm -rf $(PKGROOT)/$(toolpackage) mkdir -p $(PKGROOT)/$(toolpackage) cd $(builddir)/modules/libfancyqmi && $(MAKE) install-bin DESTDIR=$(PKGROOT)/$(package) cd $(builddir)/modules/libfancyqmi && $(MAKE) install-dev DESTDIR=$(PKGROOT)/$(devpackage) cd $(builddir)/programs/fancyqmi-tool && $(MAKE) install-bin DESTDIR=$(PKGROOT)/$(toolpackage) touch common-install-arch