X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fjava-jul%2FMakefile.am;h=877237fffd02d47d37c65630f18b226e34a51836;hp=286e3df2293611f2888cbd8603529de6c5eea937;hb=0b7af9456fb564df73d32ff7712200d14569a375;hpb=b26d1f5c53927cf45d381af27f955019850f2d87 diff --git a/tests/regression/ust/java-jul/Makefile.am b/tests/regression/ust/java-jul/Makefile.am index 286e3df22..877237fff 100644 --- a/tests/regression/ust/java-jul/Makefile.am +++ b/tests/regression/ust/java-jul/Makefile.am @@ -1,25 +1,13 @@ +JAVAROOT = . noinst_SCRIPTS = test_java_jul JTestLTTng.java EXTRA_DIST = test_java_jul JTestLTTng.java -if HAVE_JAVA_JDK -JCC=$(JAVA_JDK)/bin/javac -else -JCC=javac -endif +if BUILD_JAVA_JUL_AGENT +dist_noinst_JAVA = JTestLTTng.java +endif # BUILD_JAVA_JUL_AGENT -AGENT_JAR_FILE=$(java_agent_jar_path) - - -# Still need to copy test files in case of out of tree build -if BUILD_JAVA_AGENT -all-local: static_file JTestLTTng.class -%.class: %.java - $(JCC) -d "$(builddir)" -cp "$(AGENT_JAR_FILE):." $< -else all-local: static_file -endif # BUILD_JAVA_AGENT - static_file: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ @@ -28,7 +16,6 @@ static_file: done; \ fi - clean-local: rm -f *.class @if [ x"$(srcdir)" != x"$(builddir)" ]; then \