]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve reliability of Java code rebuilds
authorPo Lu <luangruo@yahoo.com>
Mon, 20 Feb 2023 02:50:04 +0000 (10:50 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 20 Feb 2023 02:50:04 +0000 (10:50 +0800)
* java/Makefile.in ($(CLASS_FILES)): Depend on the Java
compiler's internal dependency tracking.

java/Makefile.in

index 482419f07fa876135cad520e84efca8b83bd5ce5..af44d551701935e386de68d5033b10a5a4633f9f 100644 (file)
@@ -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.