diff --git a/debian/rules b/debian/rules
index 72619979bac326c5e620253f68caf00ade9df668..7561da1e2b24de274bbe0dc1ceaceff52b76635b 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+#we use quilt
+include /usr/share/quilt/quilt.make
+
#library versions
LIB_version := $(shell grep '^librrd_la_LDFLAGS' src/Makefile.am | \
LDFLAGS="-Wl,-z,defs"
configure: config.status
-config.status:
+config.status: $(QUILT_STAMPFN)
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
cp -f /usr/share/misc/config.sub config.sub
build-indep: build-indep-stamp
build-indep-stamp: config.status
-clean: $(PY_VERS:%=clean-python%)
+clean: clean-patched
+clean-patched: unpatch $(PY_VERS:%=clean-python%)
dh_testdir
dh_testroot
#sanity check if debian/control lists the right package name
dh_clean
-clean-python%:
+clean-python%: unpatch
set -e ;\
cd bindings/python ;\
python$* setup.py clean
.PHONY: build clean configure \
binary-indep binary-arch binary \
install install-arch \
- install-python% clean-python%
+ install-python% clean-python% unpatch