summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules6
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index 2d1b6a3b26..8664eba965 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,8 @@
#export DH_VERBOSE=1
export DH_COMPAT=3
+include /usr/share/dpatch/dpatch.make
+
# Use ./configure if configure exists, ./autogen.sh if not.
# If neither exist, exit with an error.
CONFCMD:=$(shell test -x configure && echo "configure" || echo "")
@@ -13,7 +15,7 @@ endif
VERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\ -f2)
-build: build-stamp
+build: patch build-stamp
build-stamp:
dh_testdir
# refresh autotools crap
@@ -28,7 +30,7 @@ build-stamp:
$(CC) -o cli-wrapper debian/cli-wrapper.c `pkg-config glib-2.0 --cflags --libs`
touch build-stamp
-clean:
+clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp