diff options
| author | Simon McVittie <smcv@debian.org> | 2013-02-13 12:59:28 +0000 |
|---|---|---|
| committer | Simon McVittie <smcv@debian.org> | 2013-02-13 13:02:26 +0000 |
| commit | 240955d9d27e2c696bd5d29bbb58b98333d6eaa5 (patch) | |
| tree | a0bfca75d1f0529820008b425bad2140f557a33e /debian/rules | |
| parent | 127ab8ed218bda921d450bc4bb2d39a356b3c34a (diff) | |
| download | dbus-240955d9d27e2c696bd5d29bbb58b98333d6eaa5.tar.gz | |
Add support for DEB_BUILD_OPTIONS=nodocs, which omits most documentation (allowing doxygen and xmlto to be avoided)
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 16 |
1 files changed, 14 insertions, 2 deletions
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. |
