Update d/rules to allow package to build
authorAfif Elghraoui <afif@ghraoui.name>
Sun, 6 Mar 2016 03:45:28 +0000 (19:45 -0800)
committerAfif Elghraoui <afif@ghraoui.name>
Sun, 6 Mar 2016 03:45:28 +0000 (19:45 -0800)
debian/rules

index 5979df8d1653293e155fa40315fb98ad34aaac97..f2c8a227e704b7b98bd0795edbb910d56a79f2ed 100755 (executable)
@@ -20,6 +20,10 @@ clean: clean-tests
 %:
        LC_ALL=C.UTF-8 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
 
@@ -37,7 +41,9 @@ get-orig-source:
 
 override_dh_auto_clean:
        dh_auto_clean
-       $(RM) pysam/config.py
+       $(RM) \
+               pysam/config.py \
+               pysam/config.h
 
 clean-tests:
        $(MAKE) -C tests/pysam_data clean