Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Stop trying to add the .class files into the dist (plus indentation)
[simgrid.git] / examples / java / comm_time / Makefile.am
index d60c632..63c3012 100644 (file)
@@ -1,12 +1,16 @@
 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
+EXTRA_DIST+=$(JAVA_SRC)
+
+# Declare test class
+if HAVE_JAVA
+  noinst_JAVA=$(JAVA_SRC)
+  TESTS=$(JAVA_TESTS)
+endif
 
 include $(srcdir)/../java_test.mk