debian/rules: support nocheck in DEB_BUILD_OPTIONS
authorMichael Prokop <mika@grml.org>
Thu, 24 Jan 2019 08:45:24 +0000 (09:45 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 24 Jan 2019 09:16:51 +0000 (10:16 +0100)
Spotted by lintian (see tag override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS)

debian/rules

index ba75826..17ee334 100755 (executable)
@@ -12,8 +12,8 @@
 %:
        dh $@
 
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 override_dh_auto_test:
        (cd tests && ./run_tests.sh)
        make shellcheck
-       make
-
+endif