* 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)
# 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
find . -name '*.class' $(FIND_DELETE)
maintainer-clean distclean bootstrap-clean: clean
- rm -f Makefile ndk-build.mk
+ rm -f Makefile