Commit | Line | Data |
---|---|---|
698243ef DG |
1 | noinst_SCRIPTS = test_java_jul JTestLTTng.java |
2 | EXTRA_DIST = test_java_jul JTestLTTng.java | |
37175ce4 DG |
3 | |
4 | if HAVE_JAVA_JDK | |
5 | JCC=$(JAVA_JDK)/bin/javac | |
6 | else | |
7 | JCC=javac | |
8 | endif | |
9 | ||
10 | JUL_JAR_FILE=$(java_jul_jar_path) | |
11 | ||
7d30b25e JG |
12 | # Still need to copy test files in case of out of tree build |
13 | if BUILD_JAVA_JUL | |
37175ce4 | 14 | |
7d30b25e | 15 | all-local: static_file JTestLTTng.class |
37175ce4 DG |
16 | %.class: %.java |
17 | $(JCC) -d "$(builddir)" -cp "$(JUL_JAR_FILE):." $< | |
7d30b25e JG |
18 | else |
19 | all-local: static_file | |
20 | endif #BUILD_JAVA_JUL | |
37175ce4 | 21 | |
7d30b25e | 22 | static_file: |
37175ce4 DG |
23 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
24 | for script in $(EXTRA_DIST); do \ | |
25 | cp -f $(srcdir)/$$script $(builddir); \ | |
26 | done; \ | |
27 | fi | |
28 | ||
29 | clean-local: | |
30 | rm -f *.class | |
31 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
32 | for script in $(EXTRA_DIST); do \ | |
33 | rm -f $(builddir)/$$script; \ | |
34 | done; \ | |
35 | fi |