Fix handling of configuration headers generated at build time
authorAfif Elghraoui <afif@debian.org>
Mon, 20 Jun 2016 01:11:53 +0000 (18:11 -0700)
committerAfif Elghraoui <afif@debian.org>
Mon, 20 Jun 2016 01:11:53 +0000 (18:11 -0700)
debian/rules

index 877f34bcde1592eba6ae225215e9f896e1adbdb6..c0e5f846c153017cf9a2e1a9e8809f116ffc99f2 100755 (executable)
@@ -21,10 +21,6 @@ clean: clean-tests
 %:
        dh $@ --with python2,python3 --buildsystem=pybuild
 
-override_dh_auto_configure:
-       dh_auto_configure
-       touch samtools/config.h
-
 override_dh_install: clean-tests
        dh_install -Xtest.gtf.gz
 
@@ -45,7 +41,8 @@ override_dh_auto_clean:
        dh_auto_clean
        $(RM) \
                pysam/config.py \
-               pysam/config.h
+               pysam/config.h \
+               samtools/config.h
 
 clean-tests:
        $(MAKE) -C tests/pysam_data clean