summaryrefslogtreecommitdiffstats
path: root/java/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/Makefile.am')
-rw-r--r--java/src/Makefile.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/Makefile.am b/java/src/Makefile.am
index 3609f20..f2e12a7 100644
--- a/java/src/Makefile.am
+++ b/java/src/Makefile.am
@@ -30,10 +30,10 @@ JAVA_API=yes
SUBDIRS=jni
-JAVAROOT = $(top_builddir)/.classes
+JAVAROOT = .classes
classes:
- $(MKDIR_P) $(@D)/$(JAVAROOT)
+ test -d $(@D)/$(JAVAROOT) || $(MKDIR_P) $(@D)/$(JAVAROOT)
jarfile = jar$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).jar
hdf5_javadir = $(libdir)
@@ -126,7 +126,7 @@ docs:
CLEANFILES = classhdf5_java.stamp $(jarfile) $(JAVAROOT)/$(pkgpath)/callbacks/*.class $(JAVAROOT)/$(pkgpath)/exceptions/*.class $(JAVAROOT)/$(pkgpath)/structs/*.class $(JAVAROOT)/$(pkgpath)/*.class
clean:
- rm -rf $(JAVAROOT)
+ rm -rf $(JAVAROOT)/*
rm -f $(jarfile)
rm -f classhdf5_java.stamp