From b91396bace7e09ba1dc0430ce5e2b5b3000fe77a Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 20 Feb 2023 10:50:04 +0800 Subject: [PATCH] Improve reliability of Java code rebuilds * java/Makefile.in ($(CLASS_FILES)): Depend on the Java compiler's internal dependency tracking. --- java/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.5