From 538c5d5eb735b39a754f4d27989e5996c8e0cf48 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 29 Sep 2015 22:39:23 +0100 Subject: [PATCH] java: Only build the tests when running 'make check'. Make the tests 'check_DATA' so they only get built when running the tests. --- java/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/Makefile.am b/java/Makefile.am index fa5b45cac..b56219267 100644 --- a/java/Makefile.am +++ b/java/Makefile.am @@ -134,7 +134,7 @@ endif ENABLE_APPLIANCE TESTS_ENVIRONMENT = $(top_builddir)/run --test -noinst_DATA = Bindtests.class $(java_tests:.java=.class) +check_DATA = Bindtests.class $(java_tests:.java=.class) t/%.class: t/%.java libguestfs-$(VERSION).jar $(JAVAC) $(JAVAC_FLAGS) -classpath libguestfs-$(VERSION).jar -d t $<