debian: Switch to using CDBS for Debian builds.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 22 Mar 2008 12:39:06 +0000 (12:39 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 22 Mar 2008 12:39:06 +0000 (12:39 +0000)
debian/.gitignore
debian/rules

index 43bfb16..01c990c 100644 (file)
@@ -2,3 +2,5 @@ files
 *.debhelper
 tmp
 cfd
+compat
+stamp-*
index 47eb20d..da79b9e 100755 (executable)
@@ -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