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 5b3fede3fafd3c6fca4aea216eda3d4573be56b2..62509940c95aa891ad30cd3d084f9743c0b0e225 100644 (file)
@@ -1,12 +1,17 @@
 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
-#if HAVE_JAVA
-TESTS=PingPongTest.class
-#endif
+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