286e3df2293611f2888cbd8603529de6c5eea937
[lttng-tools.git] / tests / regression / ust / java-jul / Makefile.am
1
2 noinst_SCRIPTS = test_java_jul JTestLTTng.java
3 EXTRA_DIST = test_java_jul JTestLTTng.java
4
5 if HAVE_JAVA_JDK
6 JCC=$(JAVA_JDK)/bin/javac
7 else
8 JCC=javac
9 endif
10
11 AGENT_JAR_FILE=$(java_agent_jar_path)
12
13
14 # Still need to copy test files in case of out of tree build
15 if BUILD_JAVA_AGENT
16 all-local: static_file JTestLTTng.class
17 %.class: %.java
18 $(JCC) -d "$(builddir)" -cp "$(AGENT_JAR_FILE):." $<
19 else
20 all-local: static_file
21 endif # BUILD_JAVA_AGENT
22
23
24 static_file:
25 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
26 for script in $(EXTRA_DIST); do \
27 cp -f $(srcdir)/$$script $(builddir); \
28 done; \
29 fi
30
31
32 clean-local:
33 rm -f *.class
34 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
35 for script in $(EXTRA_DIST); do \
36 rm -f $(builddir)/$$script; \
37 done; \
38 fi
39
This page took 0.044333 seconds and 3 git commands to generate.