From ae80ae07355a896f8c1247d2177b6dcc986584b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vivek=20Das=C2=A0Mohapatra?= <vivek@collabora.co.uk>
Date: Fri, 21 Jul 2017 15:58:20 +0100
Subject: [PATCH] Drive both autoreconf and auto_configure from debian/rules

---
 debian/rules | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index e38fb923c..49a62b0fe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,11 @@
 	@echo "DH $@"
 	dh $@ --with autoreconf
 
+confflags = --libexecdir=\$${libdir}/capsule --enable-gtk-doc
+
+override_dh_auto_configure:
+	dh_auto_configure -- $(confflags)
+
 override_dh_autoreconf:
-	NOCONFIGURE=1 dh_autoreconf ./autogen.sh -- --libexecdir=\$${libdir}/capsule
+	NOCONFIGURE=1 dh_autoreconf ./autogen.sh -- $(confflags)
 
-- 
GitLab