From 6247b831dd0e3f9200025241ac93c14e5c1b2539 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 22 Mar 2008 12:39:06 +0000 Subject: [PATCH] debian: Switch to using CDBS for Debian builds. --- debian/.gitignore | 2 ++ debian/rules | 45 ++++----------------------------------------- 2 files changed, 6 insertions(+), 41 deletions(-) diff --git a/debian/.gitignore b/debian/.gitignore index 43bfb16..01c990c 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -2,3 +2,5 @@ files *.debhelper tmp cfd +compat +stamp-* diff --git a/debian/rules b/debian/rules index 47eb20d..da79b9e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,44 +1,7 @@ #! /usr/bin/make -f -export DH_COMPAT = 4 +CDBS = /usr/share/cdbs/1 +include $(CDBS)/rules/debhelper.mk +include $(CDBS)/class/autotools.mk -build: - rm -rf build deb-build - mkdir deb-build - cd deb-build; ../configure --prefix=/usr --infodir=/usr/share/info - make -C deb-build - touch build - -clean: - dh_clean - rm -rf deb-build build - -install: build - dh_clean - make -C deb-build install DESTDIR=`pwd`/debian/cfd - -binary-indep: install - dh_testdir -i - dh_testroot -i - dh_installinfo -i common.info - dh_compress -i - dh_installdocs -i - dh_gencontrol -i - dh_fixperms -i - dh_installdeb -i - dh_md5sums -i - dh_builddeb -i - -binary-arch: - -binary: binary-indep binary-arch - -source: - rm -rf deb-build/*.tar.gz deb-build/=deb= - make -C deb-build dist PACKAGE=cfd - mkdir deb-build/=deb= - cd deb-build/=deb=; tar xvfz ../*.tar.gz - d=`pwd`; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/* - rm -rf deb-build/=deb= - -.PHONY: binary binary-arch binary-indep clean install source +DEB_BUILDDIR = build -- 2.11.0