#! /usr/bin/make -f
-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
+CDBS = /usr/share/cdbs/1
+include $(CDBS)/rules/debhelper.mk
+include $(CDBS)/class/autotools.mk
-clean:
- dh_clean
- rm -rf deb-build build
+DEB_BUILDDIR = build
-install: build
- dh_clean
- make -C deb-build install DESTDIR=`pwd`/debian/tmp
-
-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
-EOF
+install/cfd::
+ rm -f debian/cfd/usr/share/info/dir