In case we try to build with Git checkout which does not contain Cython generated...
authorAndreas Tille <tille@debian.org>
Fri, 26 Sep 2014 07:41:32 +0000 (09:41 +0200)
committerAndreas Tille <tille@debian.org>
Fri, 26 Sep 2014 07:41:32 +0000 (09:41 +0200)
debian/rules

index c410ac9c408f6dbd88f5783b89034f9066e9145d..b9439ae88d3d71591ab55460356a7ce337c56fc6 100755 (executable)
@@ -15,8 +15,10 @@ HTSLIBDIR  := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 # Make sure Cython is recreating some c-files.  To enable building twice in a
 # row these will be saved in advance and restored afterwards
 debian/savefiles:
-       mkdir -p debian/savefiles
-       mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles
+       if grep -q -l "Generated by Cython" pysam/*.c ; then \
+           mkdir -p debian/savefiles ; \
+           mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles ; \
+       fi
 
 override_dh_clean:
        dh_clean