Commit | Line | Data |
---|---|---|
37175ce4 | 1 | |
698243ef DG |
2 | noinst_SCRIPTS = test_java_jul JTestLTTng.java |
3 | EXTRA_DIST = test_java_jul JTestLTTng.java | |
37175ce4 DG |
4 | |
5 | if HAVE_JAVA_JDK | |
6 | JCC=$(JAVA_JDK)/bin/javac | |
7 | else | |
8 | JCC=javac | |
9 | endif | |
10 | ||
504d4ace | 11 | AGENT_JAR_FILE=$(java_agent_jar_path) |
37175ce4 | 12 | |
37175ce4 | 13 | |
e4d80545 JR |
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 | |
37175ce4 | 17 | %.class: %.java |
504d4ace | 18 | $(JCC) -d "$(builddir)" -cp "$(AGENT_JAR_FILE):." $< |
e4d80545 JR |
19 | else |
20 | all-local: static_file | |
21 | endif # BUILD_JAVA_AGENT | |
37175ce4 | 22 | |
37175ce4 | 23 | |
e4d80545 | 24 | static_file: |
37175ce4 DG |
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 | ||
e4d80545 | 31 | |
37175ce4 DG |
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 |