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
These Makefiles should always include the source files but build the
[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
d60c632
..
cb43c6c
100644
(file)
--- a/
examples/java/comm_time/Makefile.am
+++ b/
examples/java/comm_time/Makefile.am
@@
-1,12
+1,17
@@
EXTRA_DIST=comm_time_deployment.xml comm_time_platform.xml
# Declare sources:
EXTRA_DIST=comm_time_deployment.xml comm_time_platform.xml
# 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
-#if HAVE_JAVA
- # Declare test class
- TESTS=CommTimeTest.class
-#endif
+# Declare test class
+if HAVE_JAVA
+noinst_JAVA=$(JAVA_SRC)
+TESTS=$(JAVA_TESTS)
+else
+EXTRA_DIST+=$(JAVA_SRC)
+EXTRA_DIST+=$(JAVA_TESTS)
+endif
include $(srcdir)/../java_test.mk
include $(srcdir)/../java_test.mk