| 1 | if BUILD_JAVA_JUL |
| 2 | |
| 3 | noinst_SCRIPTS = test_java_jul JTestLTTng.java |
| 4 | EXTRA_DIST = test_java_jul JTestLTTng.java |
| 5 | |
| 6 | if HAVE_JAVA_JDK |
| 7 | JCC=$(JAVA_JDK)/bin/javac |
| 8 | else |
| 9 | JCC=javac |
| 10 | endif |
| 11 | |
| 12 | JUL_JAR_FILE=$(java_jul_jar_path) |
| 13 | |
| 14 | all-local: JTestLTTng.class |
| 15 | |
| 16 | %.class: %.java |
| 17 | $(JCC) -d "$(builddir)" -cp "$(JUL_JAR_FILE):." $< |
| 18 | |
| 19 | JTestLTTng.class: JTestLTTng.java |
| 20 | |
| 21 | all-local: |
| 22 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 23 | for script in $(EXTRA_DIST); do \ |
| 24 | cp -f $(srcdir)/$$script $(builddir); \ |
| 25 | done; \ |
| 26 | fi |
| 27 | |
| 28 | clean-local: |
| 29 | rm -f *.class |
| 30 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 31 | for script in $(EXTRA_DIST); do \ |
| 32 | rm -f $(builddir)/$$script; \ |
| 33 | done; \ |
| 34 | fi |
| 35 | |
| 36 | endif # BUILD_JAVA_JUL |