diff options
| author | Po Lu | 2024-06-07 21:39:01 +0800 |
|---|---|---|
| committer | Po Lu | 2024-06-07 21:39:01 +0800 |
| commit | f1c9a32a234085683f5f713ac91fed5ecf768095 (patch) | |
| tree | 87bea9252a4bf7dbf71a9706911fc5b867fb7c1e /java | |
| parent | 43826a9109a97546602de8e18f12723359e49640 (diff) | |
| download | emacs-f1c9a32a234085683f5f713ac91fed5ecf768095.tar.gz emacs-f1c9a32a234085683f5f713ac91fed5ecf768095.zip | |
Eliminate Makefile race
* 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.
Diffstat (limited to 'java')
| -rw-r--r-- | java/Makefile.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/Makefile.in b/java/Makefile.in index 35d2637837c..802da0b9e36 100644 --- a/java/Makefile.in +++ b/java/Makefile.in | |||
| @@ -359,7 +359,11 @@ public static final String[] EMACS_SHARED_LIBRARIES\ | |||
| 359 | # all shared libraries are compiled, because the computation of | 359 | # all shared libraries are compiled, because the computation of |
| 360 | # ALL_DEPENDENCIES in this instance of Make cannot be postponed until | 360 | # ALL_DEPENDENCIES in this instance of Make cannot be postponed until |
| 361 | # that stage. | 361 | # that stage. |
| 362 | cf-stamp: $(NDK_BUILD_SHARED) $(CROSS_LIBS) | 362 | # |
| 363 | # This recipe needs no dependency on $(NDK_BUILD_LIBS), since | ||
| 364 | # $(CROSS_LIBS) is a phony target that itself guarantees that they are | ||
| 365 | # up to date. | ||
| 366 | cf-stamp: $(CROSS_LIBS) | ||
| 363 | $(AM_V_EMACSCONFIG) $(MAKE) cf-stamp-1 | 367 | $(AM_V_EMACSCONFIG) $(MAKE) cf-stamp-1 |
| 364 | $(AM_V_at) touch $@ | 368 | $(AM_V_at) touch $@ |
| 365 | $(CONFIG_FILE): cf-stamp; @true | 369 | $(CONFIG_FILE): cf-stamp; @true |
| @@ -433,4 +437,4 @@ clean: | |||
| 433 | find . -name '*.class' $(FIND_DELETE) | 437 | find . -name '*.class' $(FIND_DELETE) |
| 434 | 438 | ||
| 435 | maintainer-clean distclean bootstrap-clean: clean | 439 | maintainer-clean distclean bootstrap-clean: clean |
| 436 | rm -f Makefile ndk-build.mk | 440 | rm -f Makefile |