Fix: test: log4j: missing static test files for dist and out of tree build
[lttng-tools.git] / tests / regression / ust / java-log4j / Makefile.am
CommitLineData
504d4ace
DG
1
2noinst_SCRIPTS = test_java_log4j JTestLTTng.java
3EXTRA_DIST = test_java_log4j JTestLTTng.java
4
5if HAVE_JAVA_JDK
6JCC=$(JAVA_JDK)/bin/javac
7else
8JCC=javac
9endif
10
db3487fd
JR
11# We still need to copy static files for out of tree and dist build
12if BUILD_JAVA_LOG4J_AGENT
13all-local: static_file JTestLTTng.class
504d4ace
DG
14
15%.class: %.java
16 $(JCC) -d "$(builddir)" $(JAVACFLAGS) $<
db3487fd
JR
17else
18all-local: static_file
19endif # BUILD_JAVA_LOG4J_AGENT
504d4ace
DG
20
21JTestLTTng.class: JTestLTTng.java
22
db3487fd 23static_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
30clean-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.023949 seconds and 4 git commands to generate.