summaryrefslogtreecommitdiffstats
path: root/libjava/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/Makefile.in')
-rw-r--r--libjava/Makefile.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/libjava/Makefile.in b/libjava/Makefile.in
index df65652ee21..4f00d8b1f09 100644
--- a/libjava/Makefile.in
+++ b/libjava/Makefile.in
@@ -427,6 +427,8 @@ all_java_source_files = \
$(x_java_source_files)
+all_java_class_files = $(all_java_source_files:.java=.class)
+
MOSTLYCLEANFILES = $(javao_files) $(nat_files) $(nat_headers) $(c_files) $(x_javao_files) $(x_nat_files) $(x_nat_headers)
CLEANFILES = libgcj-@gcc_version@.jar
@@ -4873,6 +4875,13 @@ libgcj-@gcc_version@.jar: $(all_java_source_files)
sed -e '/\/\./d' -e '/\/xlib/d' | \
$(ZIP) cfM0E@ $@
+# This next rule seems backward, but reflects the fact
+# that 1) all classfiles are compiled in one go when the
+# libgcj jarfile is built and 2) anything which depends
+# on a particular .class file must wait until the jarfile
+# is built.
+$(all_java_class_files): libgcj-@gcc_version@.jar
+
clean-local:
find . -name '*.class' -print | xargs rm -f
OpenPOWER on IntegriCloud