From 62220dea19074e9ae03d14bed4df26affa4e5ae6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 3 Oct 2014 12:54:29 +0200 Subject: [PATCH] build: Restrict unconditional compilation of unit tests --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index e066f98ac..1a1a43fd2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -376,7 +376,9 @@ unit_test_gatt_SOURCES = unit/test-gatt.c unit_test_gatt_LDADD = src/libshared-glib.la \ lib/libbluetooth-internal.la @GLIB_LIBS@ +if MAINTAINER_MODE noinst_PROGRAMS += $(unit_tests) +endif TESTS = $(unit_tests) @@ -398,7 +400,7 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \ --enable-manpages \ --disable-systemd --disable-udev -DISTCLEANFILES = $(pkgconfig_DATA) $(manual_pages) +DISTCLEANFILES = $(pkgconfig_DATA) $(unit_tests) $(manual_pages) MAINTAINERCLEANFILES = Makefile.in \ aclocal.m4 configure config.h.in config.sub config.guess \ -- 2.47.3