#! /usr/bin/make -f
+DH_OPTIONS = --parallel -Bdebian/build
+%:; dh $@ $(DH_OPTIONS)
-BUILDDIR = debian/build
+## 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))
-%:; dh $@ --builddirectory=$(BUILDDIR)
-
-override_dh_auto_install:
- make -C$(BUILDDIR) install DESTDIR=../cfd/
- rm -f debian/cfd/usr/share/info/dir
+## Check that the shared-library symbols are plausible.
+override_dh_makeshlibs:
+ dh_makeshlibs -- -c4