diff --git a/debian/rules b/debian/rules index 9c2b184..eaeab57 100755 --- a/debian/rules +++ b/debian/rules @@ -20,10 +20,11 @@ CFLAGS += -O2 endif -configure: config.status +configure: config.h.in.backup config.status +config.h.in.backup: + cp -p config.h.in config.h.in.backup config.status: patch dh_testdir - cp -p config.h.in config.h.in.backup ./autogen.sh ./configure $(CONFFLAGS) \ --prefix=/usr \ @@ -43,7 +44,6 @@ clean-patched: dh_testdir dh_testroot - [ ! -f config.h.in.backup ] || cp -p config.h.in.backup config.h.in rm -f build-stamp configure-stamp [ ! -f Makefile ] || $(MAKE) distclean -rm -f `find . -name "*~"` @@ -53,6 +53,7 @@ -rm -f `find . -name "Makefile.in"` config.guess config.sub configure -rm -f depcomp install-sh missing aclocal.m4 debian/dillo.png [ ! -f Makefile ] || $(MAKE) clean + [ ! -f config.h.in.backup ] || mv config.h.in.backup config.h.in dh_clean install: build