java: Only build the tests when running 'make check'.

Make the tests 'check_DATA' so they only get built when running the
tests.
This commit is contained in:
Richard W.M. Jones
2015-09-29 22:39:23 +01:00
parent f6a790b67d
commit 538c5d5eb7

View File

@@ -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 $<