sed -i 's/-I\$$(top_srcdir)\/lib//g' src/Makefile
.PHONY: src/android-emacs src/libemacs.so
-src/android-emacs src/libemacs.so &: src/Makefile src/config.h \
- src/verbose.mk lib/libgnu.a $(PRE_BUILD_DEPS)
- $(MAKE) -C src android-emacs libemacs.so
+
+src/libemacs.so: src/Makefile src/config.h src/verbose.mk \
+ lib/libgnu.a $(PRE_BUILD_DEPS)
+ $(MAKE) -C src libemacs.so
+
+src/android-emacs: src/Makefile src/config.h $(PRE_BUILD_DEPS)
+ $(MAKE) -C src android-emacs
lib-src/Makefile: $(top_builddir)/lib-src/Makefile.android
$(AM_V_GEN) mkdir -p src lib-src
# install_tmp is a directory used to generate emacs.apk-in.
# That is then packaged into $(APK_NAME).
+# There is no need to depend on NDK_BUILD_SHARED as libemacs.so
+# does already.
.PHONY: install_temp install_temp/assets/directory-tree
-install_temp: $(CROSS_BINS) $(CROSS_LIBS) $(NDK_BUILD_SHARED) \
- $(RESOURCE_FILES)
+install_temp: $(CROSS_BINS) $(CROSS_LIBS) $(RESOURCE_FILES)
$(AM_V_GEN)
# Make the working directory for this stuff
$(AM_V_SILENT) rm -rf install_temp
$(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@
# There is also a binary named `android-emacs' which simply calls
-# emacs.so.
+# emacs.so. It need not link against libemacs because app_process
+# will do that instead.
-android-emacs: libemacs.so android-emacs.c
+android-emacs: android-emacs.c
$(AM_V_CCLD)$(CC) $(lastword $^) -o $@ \
- $(ALL_CFLAGS) $(LDFLAGS) \
- $(LIBEGNU_ARCHIVE) -L. "-l:libemacs.so"
+ $(ALL_CFLAGS) $(LDFLAGS) \
+ $(LIBEGNU_ARCHIVE)
endif
## The following oldxmenu-related rules are only (possibly) used if