diff options
| -rw-r--r-- | cross/Makefile.in | 4 | ||||
| -rw-r--r-- | java/Makefile.in | 18 |
2 files changed, 15 insertions, 7 deletions
diff --git a/cross/Makefile.in b/cross/Makefile.in index fc047fd57bd..c059fda1e3c 100644 --- a/cross/Makefile.in +++ b/cross/Makefile.in | |||
| @@ -80,11 +80,11 @@ $(top_builddir)/lib/libgnu.a: | |||
| 80 | $(MAKE) -C $(top_builddir)/lib libgnu.a | 80 | $(MAKE) -C $(top_builddir)/lib libgnu.a |
| 81 | 81 | ||
| 82 | .PHONY: $(top_builddir)/lib-src/make-fingerprint | 82 | .PHONY: $(top_builddir)/lib-src/make-fingerprint |
| 83 | $(top_builddir)/lib-src/make-fingerprint: | 83 | $(top_builddir)/lib-src/make-fingerprint: $(top_builddir)/lib/libgnu.a |
| 84 | $(MAKE) -C $(top_builddir)/lib-src make-fingerprint | 84 | $(MAKE) -C $(top_builddir)/lib-src make-fingerprint |
| 85 | 85 | ||
| 86 | .PHONY: $(top_builddir)/lib-src/make-docfile | 86 | .PHONY: $(top_builddir)/lib-src/make-docfile |
| 87 | $(top_builddir)/lib-src/make-docfile: | 87 | $(top_builddir)/lib-src/make-docfile: $(top_builddir)/lib/libgnu.a |
| 88 | $(MAKE) -C $(top_builddir)/lib-src make-docfile | 88 | $(MAKE) -C $(top_builddir)/lib-src make-docfile |
| 89 | 89 | ||
| 90 | PRE_BUILD_DEPS=$(top_builddir)/lib/libgnu.a \ | 90 | PRE_BUILD_DEPS=$(top_builddir)/lib/libgnu.a \ |
diff --git a/java/Makefile.in b/java/Makefile.in index f732c9211ee..91feb53e96b 100644 --- a/java/Makefile.in +++ b/java/Makefile.in | |||
| @@ -121,17 +121,25 @@ CROSS_BINS = ../cross/src/android-emacs ../cross/lib-src/ctags \ | |||
| 121 | # Libraries to cross-compile. | 121 | # Libraries to cross-compile. |
| 122 | CROSS_LIBS = ../cross/src/libemacs.so | 122 | CROSS_LIBS = ../cross/src/libemacs.so |
| 123 | 123 | ||
| 124 | # Make sure gnulib is built first! | ||
| 125 | # If not, then the recursive invocations of make below will try to | ||
| 126 | # build gnulib at the same time. | ||
| 127 | CROSS_ARCHIVES = ../cross/lib/libgnu.a | ||
| 128 | |||
| 124 | # Third party libraries to compile. | 129 | # Third party libraries to compile. |
| 125 | include $(top_builddir)/cross/ndk-build/ndk-build.mk | 130 | include $(top_builddir)/cross/ndk-build/ndk-build.mk |
| 126 | 131 | ||
| 127 | .PHONY: $(CROSS_BINS) $(CROSS_LIBS) | 132 | .PHONY: $(CROSS_BINS) $(CROSS_LIBS) $(CROSS_ARCHIVES) |
| 128 | 133 | ||
| 129 | ../cross/src/android-emacs ../cross/src/libemacs.so: | 134 | ../cross/src/android-emacs ../cross/src/libemacs.so: $(CROSS_ARCHIVES) |
| 130 | make -C ../cross src/$(notdir $@) | 135 | $(MAKE) -C ../cross src/$(notdir $@) |
| 131 | 136 | ||
| 132 | ../cross/lib-src/hexl ../cross/lib-src/movemail \ | 137 | ../cross/lib-src/hexl ../cross/lib-src/movemail \ |
| 133 | ../cross/lib-src/ctags ../cross/lib-src/ebrowse &: | 138 | ../cross/lib-src/ctags ../cross/lib-src/ebrowse &: $(CROSS_ARCHIVES) |
| 134 | make -C ../cross lib-src/$(notdir $@) | 139 | $(MAKE) -C ../cross lib-src/$(notdir $@) |
| 140 | |||
| 141 | ../cross/lib/libgnu.a: | ||
| 142 | $(MAKE) -C ../cross lib/libgnu.a | ||
| 135 | 143 | ||
| 136 | # This is needed to generate the ``.directory-tree'' file used by the | 144 | # This is needed to generate the ``.directory-tree'' file used by the |
| 137 | # Android emulations of readdir and faccessat. | 145 | # Android emulations of readdir and faccessat. |