]> git.llucax.com Git - software/mutt-debian.git/blobdiff - debian/rules
refresh compressed-folders patch
[software/mutt-debian.git] / debian / rules
index 0deaca25ad57ace98cc3ee3040ac641e6cdd15cf..d390140215e89bf56c51102f7c9c5d67cdd5a9c9 100755 (executable)
@@ -75,12 +75,7 @@ configure: $(objdir)/configure-stamp
 $(objdir)/configure-stamp: $(QUILT_STAMPFN)
        dh_testdir
        
-       #ln -sf /usr/share/misc/config.sub .
-       #ln -sf /usr/share/misc/config.guess .
-       
-       # do not rebuild these files
-       touch configure.ac aclocal.m4 Makefile.in configure config.h.in
-       
+       autoreconf --install --include=m4
        -mkdir $(objdir)
        cd $(objdir) && \
        env CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
@@ -152,12 +147,18 @@ clean: unpatch
        
        # please dpkg-source
        rm -f po/*.gmo
-       #rm -f config.guess config.sub
        touch PATCHES
        
        # remove build tree
        rm -rf $(objdir)
        
+       # remove autotool-generated files so they don't show up in the diff.gz
+       rm -f configure config.h.in
+       rm -f Makefile.in contrib/Makefile.in imap/Makefile.in doc/Makefile.in m4/Makefile.in
+       
+       # clean PATCHES hunks (blame quilt refresh)
+       for p in `grep -rl PATCHES debian/patches` ; do perl -wi debian/fix-PATCHES.pl $$p ; done
+       
        dh_clean
 
 .PHONY: configure build build-arch build-indep clean install binary binary-arch binary-indep patch