From 240955d9d27e2c696bd5d29bbb58b98333d6eaa5 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 13 Feb 2013 12:59:28 +0000 Subject: Add support for DEB_BUILD_OPTIONS=nodocs, which omits most documentation (allowing doxygen and xmlto to be avoided) --- debian/rules | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 0522cf7c..2359a63f 100755 --- a/debian/rules +++ b/debian/rules @@ -23,8 +23,6 @@ common_configure_flags := \ $(NULL) normal_configure_flags := \ - --enable-xml-docs \ - --enable-doxygen-docs \ --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ $(NULL) @@ -39,6 +37,20 @@ debug_configure_flags := \ --libdir='$${prefix}/lib' \ $(NULL) +ifeq ($(filter nodocs,$(DEB_BUILD_OPTIONS)),) +# documentation enabled +normal_configure_flags += \ + --enable-xml-docs \ + --enable-doxygen-docs \ + $(NULL) +else +# documentation disabled +normal_configure_flags += \ + --disable-xml-docs \ + --disable-doxygen-docs \ + $(NULL) +endif + # libdbus doesn't have --with-valgrind=auto yet. We want to enable it # on those architectures where it exists, while only having to modify # debian/control when it works on more architectures. -- cgit v1.2.3