aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index d4fb3ba..f2d23b2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,6 +31,7 @@ build-indep:
build-arch: build-stamp
build-stamp:
dh_testdir
+ test ! -f entity.h || test -f entity.h.debian-bak || cp entity.h entity.h.debian-bak
cd $(builddir) && CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure $(confargs)
cd $(builddir) && LC_ALL=C $(MAKE) OPTS="-Wall -g -DDEBIAN"
cd $(builddir)/po && LC_ALL=C $(MAKE) update-gmo
@@ -40,6 +41,7 @@ clean:
dh_testdir
dh_testroot
if test -f $(builddir)/Makefile; then cd $(builddir) && $(MAKE) distclean; fi
+ test ! -f entity.h.debian-bak || mv -f entity.h.debian-bak entity.h
rm -f $(builddir)/po/*.gmo
rm -f $(builddir)/po/stamp-po
rm -f extract-stamp patch-stamp configure-stamp build-stamp install-stamp