#! /usr/bin/make -f
-export DH_COMPAT = 4
+CDBS = /usr/share/cdbs/1
+include $(CDBS)/class/autotools.mk
+include $(CDBS)/rules/debhelper.mk
-build:
- rm -rf build deb-build
- mkdir deb-build
- cd deb-build; ../configure --prefix=/usr --mandir=/usr/share/man
- make -C deb-build
- touch build
+###--------------------------------------------------------------------------
+### General settings.
-clean:
- dh_clean
- rm -rf deb-build build
+DEB_BUILDDIR = $(CURDIR)/build
-install: build
- dh_clean
- make -C deb-build install DESTDIR=`pwd`/debian/checkpath
- mkdir -p debian/libcheckpath1/usr debian/libcheckpath-dev/usr
- mv debian/checkpath/usr/lib debian/libcheckpath1/usr/lib
- mkdir -p debian/libcheckpath-dev/usr/lib
- mv debian/libcheckpath1/usr/lib/*.a debian/libcheckpath-dev/usr/lib
- mv debian/libcheckpath1/usr/lib/*.so debian/libcheckpath-dev/usr/lib
- mv debian/libcheckpath1/usr/lib/*.la debian/libcheckpath-dev/usr/lib
- mkdir -p debian/libcheckpath-dev/usr/share/man
- mv debian/checkpath/usr/share/man/man3 \
- debian/libcheckpath-dev/usr/share/man
- mkdir -p debian/libcheckpath-dev/usr/bin
- mv debian/checkpath/usr/bin/checkpath-config \
- debian/libcheckpath-dev/usr/bin
-
-binary-indep:
-
-binary-arch: install
- dh_testdir -a
- dh_testroot -a
- dh_compress -a
- dh_installdocs -a
- dh_strip -a
- dh_makeshlibs -a -V
- dh_shlibdeps -a
- dh_gencontrol -a
- dh_fixperms -a
- dh_installdeb -a
- dh_md5sums -a
- dh_builddeb -a
-
-binary: binary-indep binary-arch
-
-source:
- rm -rf deb-build/*.tar.gz deb-build/=deb=
- make -C deb-build dist PACKAGE=checkpath
- 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
+###----- That's all, folks --------------------------------------------------