[Spice-devel] [vdagent-linux PATCH v1] Makefile.am: define check_PROGRAMS once

Uri Lublin uril at redhat.com
Tue Feb 19 17:32:10 UTC 2019


Also define TESTS once

autoreconf complains when there are multiple definitions of
a variable. In this case (partial error message follows):
    warning: check_PROGRAMS multiply defined

Signed-off-by: Uri Lublin <uril at redhat.com>
---
 Makefile.am | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c2e9668..d1afae2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,12 @@ NULL =
 
 bin_PROGRAMS = src/spice-vdagent
 sbin_PROGRAMS = src/spice-vdagentd
-check_PROGRAMS = tests/test-file-xfers
+
+check_PROGRAMS = 				\
+	tests/test-file-xfers			\
+	tests/test-device-info			\
+	$(NULL)
+
 TESTS = $(check_PROGRAMS)
 
 common_sources =				\
@@ -167,9 +172,3 @@ DISTCHECK_CONFIGURE_FLAGS =			\
 tests_test_device_info_LDADD = $(src_spice_vdagent_LDADD)
 tests_test_device_info_CFLAGS = $(src_spice_vdagent_CFLAGS)
 
-check_PROGRAMS = 					\
-	tests/test-device-info			\
-	$(NULL)
-
-TESTS = $(check_PROGRAMS)
-
-- 
2.20.1



More information about the Spice-devel mailing list