X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/f1c23f1883dc88d61c2229f2ea59a0d236b7d6c0..8d29db9a6624d8000c5f4620df0190c2afb2c936:/debian/rules?ds=inline diff --git a/debian/rules b/debian/rules index 0deaca2..f27ce18 100755 --- a/debian/rules +++ b/debian/rules @@ -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)" \ @@ -132,6 +127,7 @@ binary binary-arch: build install dh_installdocs dh_installexamples dh_installchangelogs ChangeLog + install -m644 debian/mutt.lintian $(CURDIR)/debian/mutt/usr/share/lintian/overrides/mutt dh_link dh_strip @@ -152,12 +148,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