Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
These Makefiles should always include the source files but build the
[simgrid.git] / examples / java / ping_pong / Makefile.am
index 2513bce4e90003589560e17a5c79597d9ab64150..62509940c95aa891ad30cd3d084f9743c0b0e225 100644 (file)
@@ -1,10 +1,17 @@
-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
 
 # Declare test class
-TESTS=PingPongTest.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