aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorPo Lu2023-01-14 09:34:53 +0800
committerPo Lu2023-01-14 09:34:53 +0800
commit28a9baccd4c8e997895d3adb3cfce4a11fa29896 (patch)
tree3b3be6902bca10759a1c12632c3fe325bfe5f0eb /admin
parenta441ac5527f7323202063466422d3ee830ad4c21 (diff)
downloademacs-28a9baccd4c8e997895d3adb3cfce4a11fa29896.tar.gz
emacs-28a9baccd4c8e997895d3adb3cfce4a11fa29896.zip
Improve reliability of Android build system
* .gitignore: Add new files. * INSTALL.android: New file. * Makefile.in (clean_dirs): Clean xcompile as well. * admin/merge-gnulib (avoided_flags): Import gnulib into Android directory as well. * doc/emacs/android.texi (Android): * doc/emacs/emacs.texi (Top): New node `Android'. * java/org/gnu/emacs/EmacsThread.java (run): Use right executable name. * lib/Makefile.in (ANDROID_CFLAGS): Use better way to refer to /src. (vpath): Delete ugly block of vpath statements. (mostlyclean): Remove Makefile.android. * lib/fpending.c (__fpending): * lib/open.c: * lib/unistd.c (_GL_UNISTD_INLINE): Revert changes to gnulib in lib/. * src/android.h: * src/androidterm.c: Fix build. * xcompile/Makefile.in (LIB_SRCDIR): (LIBSRC_BINARIES, src/verbose.mk): (PRE_BUILD_DEPS, PHONY): Use gnulib in xcompile/lib/ as opposed to lib/. * xcompile/README: Adjust README.
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/merge-gnulib11
1 files changed, 10 insertions, 1 deletions
diff --git a/admin/merge-gnulib b/admin/merge-gnulib
index e17ecd95ac3..b99e38672a4 100755
--- a/admin/merge-gnulib
+++ b/admin/merge-gnulib
@@ -114,6 +114,11 @@ for module in $AVOIDED_MODULES; do
114 avoided_flags="$avoided_flags --avoid=$module" 114 avoided_flags="$avoided_flags --avoid=$module"
115done 115done
116 116
117# Clean the lib directory as well.
118if [ -e "$src"/lib/Makefile ]; then
119 make -C "$src"/lib maintainer-clean
120fi
121
117"$gnulib_srcdir"/gnulib-tool --dir="$src" $GNULIB_TOOL_FLAGS \ 122"$gnulib_srcdir"/gnulib-tool --dir="$src" $GNULIB_TOOL_FLAGS \
118 $avoided_flags $GNULIB_MODULES && 123 $avoided_flags $GNULIB_MODULES &&
119rm -- "$src"lib/gl_openssl.h \ 124rm -- "$src"lib/gl_openssl.h \
@@ -135,4 +140,8 @@ cp -- "$gnulib_srcdir"/lib/af_alg.h \
135{ test -z "$src" || cd "$src"; } && 140{ test -z "$src" || cd "$src"; } &&
136./autogen.sh 141./autogen.sh
137 142
138echo "Please update the block of vpath statements in lib/Makefile.in" 143# Finally, update the files in lib/ to xcompile/lib.
144rsync "$src"/lib "$src"/xcompile
145
146# Remove unnecessary files.
147rm -f "$src"/xcompile/lib/*.mk.in "$src"/xcompile/lib/Makefile.in