This is similar to this bug report: bugs.debian.org #831939
They fixed with following patch:
--- a/debian/rules
+++ b/debian/rules
@@ -31,12 +31,12 @@ install: build
# rename jailer.pl to jailer
mv `pwd`/debian/jailer/usr/sbin/jailer.pl `pwd`/debian/jailer/usr/sbin/jailer
-# Build architecture-independent files here.
-binary-indep: build install
+# Build architecture-dependent files here.
+binary-arch:
We have nothing to do by default.
-# Build architecture-dependent files here.
-binary-arch: build install
+# Build architecture-independent files here.
+binary-indep: build install
dh_testdir
dh_testroot
dh_installdebconf
So, depending on the used target tags in rules file, dpkg-buildpackage will run specific checks automatically.
Full details found in: debian.org/doc/debian-policy/ch-source.html#s-debianrules