A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix EXTRA_DIST
[simgrid.git]
/
examples
/
java
/
comm_time
/
Makefile.am
diff --git
a/examples/java/comm_time/Makefile.am
b/examples/java/comm_time/Makefile.am
index
fa37c38
..
1a38e8c
100644
(file)
--- a/
examples/java/comm_time/Makefile.am
+++ b/
examples/java/comm_time/Makefile.am
@@
-1,10
+1,18
@@
-EXTRA_DIST=comm_time_deployment.xml comm_time_platform.xml
surfxml.dtd
+EXTRA_DIST=comm_time_deployment.xml comm_time_platform.xml
# Declare sources:
# Declare sources:
-noinst_JAVA= Master.java Slave.java CommTimeTest.java CommTimeTask.java
+JAVA_SRC=Master.java Slave.java CommTimeTest.java CommTimeTask.java
+JAVA_TESTS=CommTimeTest.class
+
+EXTRA_DIST+=$(JAVA_SRC)
# Declare test class
# Declare test class
-TESTS=CommTimeTest.class
+if HAVE_JAVA
+noinst_JAVA=$(JAVA_SRC)
+TESTS=$(JAVA_TESTS)
+else
+EXTRA_DIST+=$(JAVA_TESTS)
+endif
include $(srcdir)/../java_test.mk
include $(srcdir)/../java_test.mk