Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix EXTRA_DIST
[simgrid.git] / examples / java / ping_pong / Makefile.am
index 2513bce..5e23b21 100644 (file)
@@ -1,10 +1,18 @@
-EXTRA_DIST=ping_pong_deployment.xml ping_pong_platform.xml surfxml.dtd
+EXTRA_DIST=ping_pong_deployment.xml ping_pong_platform.xml
 
 # Declare sources:
-noinst_JAVA= Sender.java Receiver.java PingPongTask.java PingPongTest.java
+JAVA_SRC=Sender.java Receiver.java PingPongTask.java PingPongTest.java
+JAVA_TESTS=PingPongTest.class
+
+EXTRA_DIST+=$(JAVA_SRC)
 
 # Declare test class
-TESTS=PingPongTest.class
+if HAVE_JAVA
+noinst_JAVA=$(JAVA_SRC)
+TESTS=$(JAVA_TESTS)
+else
+EXTRA_DIST+=$(JAVA_TESTS)
+endif
 
 include $(srcdir)/../java_test.mk