@SET_MAKE@
+# Copyright (c) 2004-2007. The SimGrid team. All right reserved.
+
+# This file is part of the SimGrid project. This is free software:
+# You can redistribute and/or modify it under the terms of the
+# GNU LGPL (v2.1) licence.
+
#########################
# How to compile the code
# All this to only get a dumb javac *java... Automake still have issues with java
target_vendor = @target_vendor@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-EXTRA_DIST = ping_pong_deployment.xml ping_pong_platform.xml surfxml.dtd
+EXTRA_DIST = ping_pong_deployment.xml ping_pong_platform.xml \
+ $(JAVA_SRC)
# 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
+@HAVE_JAVA_TRUE@noinst_JAVA = $(JAVA_SRC)
+@HAVE_JAVA_TRUE@TESTS = $(JAVA_TESTS)
JAVAROOT = .
-AM_JAVACFLAGS = -classpath $(top_srcdir)/src/simgrid.jar
+AM_JAVACFLAGS = -classpath $(top_srcdir)/src/simgrid.jar:.
##########################
# What to do on make check
check-TESTS: $(TESTS)
@failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- faillist=""; xpasslist=""; xfaillist=""; skiplist=""; \
srcdir=$(srcdir); export srcdir; \
list=' $(TESTS) '; \
if test -n "$$list"; then \
*$$ws$$tst$$ws*) \
xpass=`expr $$xpass + 1`; \
failed=`expr $$failed + 1`; \
- xpasslist="$$xpasslist $$tst"; \
echo "XPASS: $$tst"; \
;; \
*) \
case " $(XFAIL_TESTS) " in \
*$$ws$$tst$$ws*) \
xfail=`expr $$xfail + 1`; \
- xfaillist="$$xfaillist $$tst"; \
echo "XFAIL: $$tst"; \
;; \
*) \
failed=`expr $$failed + 1`; \
- faillist="$$faillist $$tst"; \
echo "FAIL: $$tst"; \
;; \
esac; \
else \
skip=`expr $$skip + 1`; \
- skiplist="$$skiplist $$tst"; \
echo "SKIP: $$tst"; \
fi; \
done; \
test -z "$$skipped" || echo "$$skipped"; \
test -z "$$report" || echo "$$report"; \
echo "$$dashes"; \
- if test -n "$$faillist" ; then \
- echo "Failed tests:";\
- for tst in $$faillist ; do \
- echo " "$$tst;\
- done;\
- fi;\
- if test -n "$$xpasslist" ; then \
- echo "Unexpectedly passed tests:";\
- for tst in $$xpasslist ; do \
- echo " "$$tst;\
- done;\
- fi;\
- if test -n "$$xfaillist" ; then \
- echo "Expected failures:";\
- for tst in $$xfaillist ; do \
- echo " "$$tst;\
- done;\
- fi;\
- if test -n "$$skiplist" ; then \
- echo "Skipped tests:";\
- for tst in $$skiplist ; do \
- echo " "$$tst;\
- done;\
- fi;\
test "$$failed" -eq 0; \
else :; fi
@for n in $(DISTFILES) ; do echo $(SRCFILE)$$n; done
@echo
@for n in $(DIST_SUBDIRS) ; do if [ x$$n != x. ] ; then $(MAKE) -C $$n dist-files SRCFILE=$(SRCFILE)$$n/ ; fi; done
-#endif
# Cruft
# Tell versions [3.59,3.63) of GNU make to not export all variables.