X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/e2b830d2c3955f629b7bfd79f20b687ecde7a2c7..41633d4d1ab4b724ada322771bb8396735825c6b:/debian/rules diff --git a/debian/rules b/debian/rules index 47eb20d2..9c783b7e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,44 +1,12 @@ #! /usr/bin/make -f +DH_OPTIONS = --parallel -Bdebian/build +%:; dh $@ $(DH_OPTIONS) -export DH_COMPAT = 4 +## Test both with and without CPU-specific optimizations. +override_dh_auto_test: + dh_auto_test $(addprefix -O, $(DH_OPTIONS)) + CATACOMB_CPUFEAT="-*" dh_auto_test $(addprefix -O, $(DH_OPTIONS)) -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 +## Check that the shared-library symbols are plausible. +override_dh_makeshlibs: + dh_makeshlibs -- -c4