Fix: test: log4j: missing static test files for dist and out of tree build
[lttng-tools.git] / tests / regression / ust / java-log4j / Makefile.am
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
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
14
15 %.class: %.java
16 $(JCC) -d "$(builddir)" $(JAVACFLAGS) $<
17 else
18 all-local: static_file
19 endif # BUILD_JAVA_LOG4J_AGENT
20
21 JTestLTTng.class: JTestLTTng.java
22
23 static_file:
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
This page took 0.02972 seconds and 4 git commands to generate.