X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/blobdiff_plain/fa64e43069529b159016b7e5f8cd8f09a11ba12d..f6795c17f9899da2759a2f5782e17b2ee5a0dbb9:/debian/rules diff --git a/debian/rules b/debian/rules index cde85dc..1ee41f9 100755 --- a/debian/rules +++ b/debian/rules @@ -1,52 +1,8 @@ #! /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 deb-build build; mkdir deb-build - cd deb-build; ../configure --prefix=/usr --mandir=/usr/share/man - make -C deb-build - touch build - -clean: - dh_clean - rm -rf deb-build build - -install: build - dh_clean - for i in xscsize xwait xtell; do \ - dh_install -p xtoys deb-build/$$i usr/bin; \ - dh_installman -p xtoys $$i.1; \ - done - for i in xcatch xgetline xmsg xshutdown; do \ - dh_install -p xtoys-gtk deb-build/$$i usr/bin; \ - dh_installman -p xtoys-gtk $$i.1; \ - done - dh_strip -a - -binary-indep: - -binary-arch: install - dh_testdir -a - dh_testroot -a - dh_compress -a - dh_installdocs -a - dh_strip -a - 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 - 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 = $(CURDIR)/build +DEB_DESTDIR = $(CURDIR)/debian/tmp