From: Po Lu Date: Mon, 20 Feb 2023 02:50:04 +0000 (+0800) Subject: Improve reliability of Java code rebuilds X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b91396bace7e09ba1dc0430ce5e2b5b3000fe77a;p=emacs.git Improve reliability of Java code rebuilds * java/Makefile.in ($(CLASS_FILES)): Depend on the Java compiler's internal dependency tracking. --- diff --git a/java/Makefile.in b/java/Makefile.in index 482419f07fa..af44d551701 100644 --- a/java/Makefile.in +++ b/java/Makefile.in @@ -257,8 +257,8 @@ $(RESOURCE_FILE): $(RESOURCE_FILES) $(CLASS_FILES): $(RESOURCE_FILE) .SUFFIXES: .java .class -.java.class &: - $(AM_V_JAVAC) $(JAVAC) $(JAVAFLAGS) $< +$(CLASS_FILES) &: $(JAVA_FILES) + $(AM_V_JAVAC) $(JAVAC) $(JAVAFLAGS) $(JAVA_FILES) # N.B. that find must be called all over again in case javac generated # nested classes.