Commit | Line | Data |
---|---|---|
504d4ace DG |
1 | |
2 | noinst_SCRIPTS = test_java_log4j JTestLTTng.java | |
3 | EXTRA_DIST = test_java_log4j JTestLTTng.java | |
4 | ||
5 | if HAVE_JAVA_JDK | |
6 | JCC=$(JAVA_JDK)/bin/javac | |
7 | else | |
8 | JCC=javac | |
9 | endif | |
10 | ||
db3487fd JR |
11 | # We still need to copy static files for out of tree and dist build |
12 | if BUILD_JAVA_LOG4J_AGENT | |
13 | all-local: static_file JTestLTTng.class | |
504d4ace DG |
14 | |
15 | %.class: %.java | |
16 | $(JCC) -d "$(builddir)" $(JAVACFLAGS) $< | |
db3487fd JR |
17 | else |
18 | all-local: static_file | |
19 | endif # BUILD_JAVA_LOG4J_AGENT | |
504d4ace DG |
20 | |
21 | JTestLTTng.class: JTestLTTng.java | |
22 | ||
db3487fd | 23 | static_file: |
504d4ace DG |
24 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
25 | for script in $(EXTRA_DIST); do \ | |
26 | cp -f $(srcdir)/$$script $(builddir); \ | |
27 | done; \ | |
28 | fi | |
29 | ||
30 | clean-local: | |
31 | rm -f *.class | |
32 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
33 | for script in $(EXTRA_DIST); do \ | |
34 | rm -f $(builddir)/$$script; \ | |
35 | done; \ | |
36 | fi | |
37 |