summaryrefslogtreecommitdiffstats
path: root/java/examples/intro/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'java/examples/intro/Makefile.am')
-rw-r--r--java/examples/intro/Makefile.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/examples/intro/Makefile.am b/java/examples/intro/Makefile.am
index af4022b..3d5757a 100644
--- a/java/examples/intro/Makefile.am
+++ b/java/examples/intro/Makefile.am
@@ -23,10 +23,10 @@ include $(top_srcdir)/config/commence.am
# Mark this directory as part of the JNI API
JAVA_API=yes
-JAVAROOT = $(top_builddir)/.classes
+JAVAROOT = .classes
classes:
- $(MKDIR_P) $(@D)/$(JAVAROOT)
+ test -d $(@D)/$(JAVAROOT) || $(MKDIR_P) $(@D)/$(JAVAROOT)
pkgpath = examples/intro
hdfjarfile = jar$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).jar
@@ -60,7 +60,7 @@ TEST_SCRIPT = $(check_SCRIPTS)
CLEANFILES = classnoinst.stamp $(jarfile) $(JAVAROOT)/$(pkgpath)/*.class runExample.sh
clean:
- rm -rf $(JAVAROOT)
+ rm -rf $(JAVAROOT)/*
rm -f $(jarfile)
rm -f classnoinst.stamp