From fb4c324c76176b248c40bce6f151bd397f8e09fb Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Tue, 15 Apr 2014 14:43:09 +0100 Subject: Don't build the tests when cross compiling, they fail to build AC_CHECK_FILES doesn't work when cross building for some reason. But we don't run the tests in this situation anyway, so don't worry about it. --- debian/rules | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'debian') diff --git a/debian/rules b/debian/rules index 83edd94..36a22d7 100755 --- a/debian/rules +++ b/debian/rules @@ -6,12 +6,21 @@ export DPKG_GENSYMBOLS_CHECK_LEVEL=4 +ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + TESTS=yes +else + TESTS=no +endif + %: dh $@ --with autoreconf override_dh_autoreconf: NOCONFIGURE=1 dh_autoreconf ./autogen.sh +override_dh_auto_configure: + dh_auto_configure -- --enable-tests=$(TESTS) + override_dh_install: find debian/indicator-power -name \*.la -delete find debian/indicator-power -name \*.a -delete -- cgit v1.2.3