Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix EXTRA_DIST
[simgrid.git] / examples / java / suspend / Makefile.am
index dbe489c..cdf77df 100644 (file)
@@ -1,10 +1,18 @@
-EXTRA_DIST=suspend_deployment.xml suspend_platform.xml surfxml.dtd
+EXTRA_DIST=suspend_deployment.xml suspend_platform.xml
 
 # Declare sources:
-noinst_JAVA= DreamMaster.java LazyGuy.java SuspendTest.java
+JAVA_SRC=DreamMaster.java LazyGuy.java SuspendTest.java
+JAVA_TESTS=SuspendTest.class
 
-# Declare test class 
-# TESTS=SuspendTest.class (broken test)
+EXTRA_DIST+=$(JAVA_SRC)
+
+# Declare test class
+if HAVE_JAVA
+noinst_JAVA=$(JAVA_SRC)
+TESTS=$(JAVA_TESTS)
+else
+EXTRA_DIST+=$(JAVA_TESTS)
+endif
 
 include $(srcdir)/../java_test.mk