]> git.eshelyaron.com Git - emacs.git/commitdiff
Eliminate Makefile race
authorPo Lu <luangruo@yahoo.com>
Fri, 7 Jun 2024 13:39:01 +0000 (21:39 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 8 Jun 2024 12:58:49 +0000 (14:58 +0200)
* java/Makefile.in (cf-stamp): Don't separately depend on
NDK_BUILD_SHARED, as this renders make liable to descend into
cross/ndk-build twice in different processes.
(clean): Don't remove nonexistent file.

(cherry picked from commit f1c9a32a234085683f5f713ac91fed5ecf768095)

java/Makefile.in

index 9b515ad28e07ffd891b59a7ec9262e869518ed6d..83df6384650247e0929fd564eb8adbb3d179101a 100644 (file)
@@ -358,7 +358,11 @@ public static final String[] EMACS_SHARED_LIBRARIES\
 # all shared libraries are compiled, because the computation of
 # ALL_DEPENDENCIES in this instance of Make cannot be postponed until
 # that stage.
-cf-stamp: $(NDK_BUILD_SHARED) $(CROSS_LIBS)
+#
+# This recipe needs no dependency on $(NDK_BUILD_LIBS), since
+# $(CROSS_LIBS) is a phony target that itself guarantees that they are
+# up to date.
+cf-stamp: $(CROSS_LIBS)
        $(AM_V_EMACSCONFIG) $(MAKE) cf-stamp-1
        $(AM_V_at) touch $@
 $(CONFIG_FILE): cf-stamp; @true
@@ -432,4 +436,4 @@ clean:
        find . -name '*.class' $(FIND_DELETE)
 
 maintainer-clean distclean bootstrap-clean: clean
-       rm -f Makefile ndk-build.mk
+       rm -f Makefile