-EXTRA_DIST=suspend_deployment.xml suspend_platform.xml surfxml.dtd
+# 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.
+
+
+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
+TESTS=$(JAVA_TESTS)
+
+EXTRA_DIST+=$(JAVA_SRC)
-# Declare test class
-TESTS=SuspendTest.class
-XFAIL_TESTS=SuspendTest.class
+# Declare test class
+if HAVE_JAVA
+ noinst_JAVA=$(JAVA_SRC)
+endif
include $(srcdir)/../java_test.mk