summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2013-02-13 13:00:47 +0000
committerSimon McVittie <smcv@debian.org>2013-02-13 13:02:26 +0000
commit208fc50b667e6f23e7a7ce8a4fc82b63608e5016 (patch)
treed95dcde51bf323da1059765cdce774f098e69f15 /debian/rules
parent240955d9d27e2c696bd5d29bbb58b98333d6eaa5 (diff)
downloaddbus-208fc50b667e6f23e7a7ce8a4fc82b63608e5016.tar.gz
In the debug build, do not insist on building all tests if DEB_BUILD_PROFILE=stage1
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules8
1 files changed, 7 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 2359a63f..4e32cae6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,7 +31,6 @@ debug_configure_flags := \
--disable-doxygen-docs \
--enable-asserts \
--enable-checks \
- --enable-tests \
--enable-verbose-mode \
--prefix=/usr/lib/$(DEB_HOST_MULTIARCH)/dbus-1.0/debug-build \
--libdir='$${prefix}/lib' \
@@ -51,6 +50,13 @@ normal_configure_flags += \
$(NULL)
endif
+ifeq ($(filter stage1,$(DEB_BUILD_PROFILE)),)
+# not a stage1 build - build all the tests
+debug_configure_flags += \
+ --enable-tests \
+ $(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.