Remove unnecessary rule override in d/rules
authorAfif Elghraoui <afif@ghraoui.name>
Thu, 12 Nov 2015 07:23:14 +0000 (23:23 -0800)
committerAfif Elghraoui <afif@ghraoui.name>
Thu, 12 Nov 2015 07:23:49 +0000 (23:23 -0800)
Adding a prerequisite to the clean target doesn't require adding
a dh_override_target

debian/rules

index d3ac32d9efc480bf1da81bd7f0ad2d65d646c09b..fba8637a99ead4c69c09c827f9a02ea5e258d358 100755 (executable)
@@ -15,15 +15,13 @@ export PYBUILD_TEST_ARGS={dir}/tests
 
 # DEB_BUILD_OPTIONS := nocheck
 
+clean: clean-tests
 %:
        LC_ALL=C.UTF-8 dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_install: clean-tests
        dh_install -Xtest.gtf.gz
 
-override_dh_auto_clean: clean-tests
-       dh_auto_clean
-
 override_dh_auto_test:
        cd tests && make -C pysam_data
        # dh_auto_test  # unfortunately this does not work out of the box