diff options
| author | Glenn Morris | 2013-10-22 23:22:54 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-10-22 23:22:54 -0700 |
| commit | b8e3b0a9ecb6c8ca1c2a4db189e92bcf08b5052d (patch) | |
| tree | 0efdb7b6fafc13b3c0a4dca69bbd3a2a3ac9e2c4 | |
| parent | e4ea223d7332952cc0e1275fa4c982645e11b17f (diff) | |
| download | emacs-b8e3b0a9ecb6c8ca1c2a4db189e92bcf08b5052d.tar.gz emacs-b8e3b0a9ecb6c8ca1c2a4db189e92bcf08b5052d.zip | |
Make building in directories with whitespace possible
Make has trouble with targets containing whitespace,
http://savannah.gnu.org/bugs/?712, so the general approach is
to use relative paths where possible. It's generally only Emacs
itself that needs absolute paths, eg in src/epaths.h.
* configure.ac (srcdir): Don't make it absolute - abs_srcdir exists.
* Makefile.in (abs_srcdir): New, set by configure.
(buildlisppath): Use abs_srcdir.
(install-arch-indep, install-etcdoc, install-info, install-man)
(install-etc): Quote entities that might contain whitespace.
* admin/unidata/Makefile.in (emacs, ${DSTDIR}/charprop.el):
Quote entities that might contain whitespace.
* leim/Makefile.in (abs_srcdir): New, set by configure.
(buildlisppath): Use abs_srcdir.
(RUN_EMACS, .el.elc, changed.tit, changed.misc, leim-list.el)
($(srcdir)/ja-dic/ja-dic.el, setwins, distclean, check-declare):
Quote entities that might contain whitespace.
* lib-src/Makefile.in ($(DESTDIR)${archlibdir}):
Quote entities that might contain whitespace.
* lisp/Makefile.in (abs_srcdir, abs_lisp): New, set by configure.
(emacs, compile, compile-always):
Quote entities that might contain whitespace.
(custom-deps, finder-data, autoloads): Use abs_lisp.
($(MH_E_DIR)/mh-loaddefs.el, $(TRAMP_DIR)/tramp-loaddefs.el)
($(CAL_DIR)/cal-loaddefs.el, $(CAL_DIR)/diary-loaddefs.el)
($(CAL_DIR)/hol-loaddefs.el): Manually expand target file name.
* nextstep/Makefile.in (${ns_check_file} ${ns_appdir}):
Quote entities that might contain whitespace.
* nt/Makefile.in ($(DESTDIR)${archlibdir}):
Quote entities that might contain whitespace.
* src/Makefile.in (RUN_TEMACS): Make relative (again).
($(leimdir)/leim-list.el, .el.elc, $(lispsource)/loaddefs.el)
(bootstrap-emacs$(EXEEXT)):
Quote entities that might contain whitespace.
* test/automated/Makefile.in (abs_top_srcdir, top_builddir):
New, set by configure.
(top_srcdir): Remove.
(abs_test, abs_lispsrc): New.
(lisp): No longer absolute.
(emacs, lisp-compile, compile, compile-always):
Quote entities that might contain whitespace.
Fixes: debbugs:15675
| -rw-r--r-- | ChangeLog | 9 | ||||
| -rw-r--r-- | Makefile.in | 44 | ||||
| -rw-r--r-- | admin/ChangeLog | 5 | ||||
| -rw-r--r-- | admin/unidata/Makefile.in | 4 | ||||
| -rw-r--r-- | configure.ac | 26 | ||||
| -rw-r--r-- | leim/ChangeLog | 8 | ||||
| -rw-r--r-- | leim/Makefile.in | 27 | ||||
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 6 | ||||
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/Makefile.in | 24 | ||||
| -rw-r--r-- | nextstep/ChangeLog | 5 | ||||
| -rw-r--r-- | nextstep/Makefile.in | 2 | ||||
| -rw-r--r-- | nt/ChangeLog | 5 | ||||
| -rw-r--r-- | nt/Makefile.in | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/Makefile.in | 10 | ||||
| -rw-r--r-- | test/ChangeLog | 10 | ||||
| -rw-r--r-- | test/automated/Makefile.in | 16 |
19 files changed, 136 insertions, 89 deletions
| @@ -1,3 +1,12 @@ | |||
| 1 | 2013-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | Make building in directories with whitespace possible. (Bug#15675) | ||
| 4 | * configure.ac (srcdir): Don't make it absolute - abs_srcdir exists. | ||
| 5 | * Makefile.in (abs_srcdir): New, set by configure. | ||
| 6 | (buildlisppath): Use abs_srcdir. | ||
| 7 | (install-arch-indep, install-etcdoc, install-info, install-man) | ||
| 8 | (install-etc): Quote entities that might contain whitespace. | ||
| 9 | |||
| 1 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> | 10 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 11 | ||
| 3 | Merge from gnulib, incorporating: | 12 | Merge from gnulib, incorporating: |
diff --git a/Makefile.in b/Makefile.in index c6254fd6098..25e170200a3 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -163,6 +163,7 @@ bitmapdir=@bitmapdir@ | |||
| 163 | 163 | ||
| 164 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. | 164 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. |
| 165 | srcdir=@srcdir@ | 165 | srcdir=@srcdir@ |
| 166 | abs_srcdir=@abs_srcdir@ | ||
| 166 | 167 | ||
| 167 | # Where the manpage source files are kept. | 168 | # Where the manpage source files are kept. |
| 168 | mansrcdir=$(srcdir)/doc/man | 169 | mansrcdir=$(srcdir)/doc/man |
| @@ -216,7 +217,7 @@ lisppath=@lisppath@ | |||
| 216 | # before they've been installed in their final location. | 217 | # before they've been installed in their final location. |
| 217 | # This should be a colon-separated list of directories. | 218 | # This should be a colon-separated list of directories. |
| 218 | # Normally it points to the lisp/ directory in the sources. | 219 | # Normally it points to the lisp/ directory in the sources. |
| 219 | buildlisppath=${srcdir}/lisp | 220 | buildlisppath=${abs_srcdir}/lisp |
| 220 | 221 | ||
| 221 | # Where to install the other architecture-independent | 222 | # Where to install the other architecture-independent |
| 222 | # data files distributed with Emacs (like the tutorial, | 223 | # data files distributed with Emacs (like the tutorial, |
| @@ -569,10 +570,10 @@ install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTR | |||
| 569 | [ -d $${dir} ] || exit 1 ; \ | 570 | [ -d $${dir} ] || exit 1 ; \ |
| 570 | dest=$$1 ; shift ; \ | 571 | dest=$$1 ; shift ; \ |
| 571 | [ -d $${dest} ] && \ | 572 | [ -d $${dest} ] && \ |
| 572 | [ `cd $${dest} && /bin/pwd` = `cd $${dir} && /bin/pwd` ] && \ | 573 | [ "`cd $${dest} && /bin/pwd`" = "`cd $${dir} && /bin/pwd`" ] && \ |
| 573 | continue ; \ | 574 | continue ; \ |
| 574 | if [ "$${dir}" = "leim/quail" ]; then \ | 575 | if [ "$${dir}" = "leim/quail" ]; then \ |
| 575 | [ `cd $${dir} && /bin/pwd` = `cd ${srcdir}/leim/quail && /bin/pwd` ] && \ | 576 | [ "`cd $${dir} && /bin/pwd`" = "`cd ${srcdir}/leim/quail && /bin/pwd`" ] && \ |
| 576 | continue ; \ | 577 | continue ; \ |
| 577 | else \ | 578 | else \ |
| 578 | rm -rf $${dest} ; \ | 579 | rm -rf $${dest} ; \ |
| @@ -616,7 +617,7 @@ install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTR | |||
| 616 | unset CDPATH; \ | 617 | unset CDPATH; \ |
| 617 | thisdir=`/bin/pwd`; \ | 618 | thisdir=`/bin/pwd`; \ |
| 618 | for dir in $(DESTDIR)${lispdir} $(DESTDIR)${leimdir}; do \ | 619 | for dir in $(DESTDIR)${lispdir} $(DESTDIR)${leimdir}; do \ |
| 619 | cd $${thisdir} ; \ | 620 | cd "$${thisdir}" ; \ |
| 620 | cd $${dir} || exit 1 ; \ | 621 | cd $${dir} || exit 1 ; \ |
| 621 | for f in `find . -name "*.elc" -print`; do \ | 622 | for f in `find . -name "*.elc" -print`; do \ |
| 622 | ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ | 623 | ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ |
| @@ -633,7 +634,7 @@ install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTR | |||
| 633 | install-etcdoc: src install-arch-indep | 634 | install-etcdoc: src install-arch-indep |
| 634 | -unset CDPATH; \ | 635 | -unset CDPATH; \ |
| 635 | umask 022; ${MKDIR_P} $(DESTDIR)${etcdocdir} ; \ | 636 | umask 022; ${MKDIR_P} $(DESTDIR)${etcdocdir} ; \ |
| 636 | if [ `cd ./etc; /bin/pwd` != `cd $(DESTDIR)${etcdocdir}; /bin/pwd` ]; \ | 637 | if [ "`cd ./etc; /bin/pwd`" != "`cd $(DESTDIR)${etcdocdir}; /bin/pwd`" ]; \ |
| 637 | then \ | 638 | then \ |
| 638 | docfile="DOC"; \ | 639 | docfile="DOC"; \ |
| 639 | echo "Copying etc/$${docfile} to $(DESTDIR)${etcdocdir} ..." ; \ | 640 | echo "Copying etc/$${docfile} to $(DESTDIR)${etcdocdir} ..." ; \ |
| @@ -646,27 +647,28 @@ install-info: info | |||
| 646 | umask 022; ${MKDIR_P} $(DESTDIR)${infodir} | 647 | umask 022; ${MKDIR_P} $(DESTDIR)${infodir} |
| 647 | -unset CDPATH; \ | 648 | -unset CDPATH; \ |
| 648 | thisdir=`/bin/pwd`; \ | 649 | thisdir=`/bin/pwd`; \ |
| 649 | [ `cd ${srcdir}/info && /bin/pwd` = `cd $(DESTDIR)${infodir} && /bin/pwd` ] || \ | 650 | if [ "`cd ${srcdir}/info && /bin/pwd`" = "`cd $(DESTDIR)${infodir} && /bin/pwd`" ]; then \ |
| 650 | (cd $(DESTDIR)${infodir}; \ | 651 | true; \ |
| 652 | else \ | ||
| 653 | (cd "$(DESTDIR)${infodir}"; \ | ||
| 651 | [ -f dir ] || \ | 654 | [ -f dir ] || \ |
| 652 | (cd $${thisdir}; \ | 655 | (cd "$${thisdir}"; \ |
| 653 | ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir) ; \ | 656 | ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir) ); \ |
| 654 | info_misc=`cd $${thisdir}/doc/misc && \ | 657 | info_misc=`cd doc/misc && $(QUIET_SUBMAKE) $(MAKE) -s echo-info`; \ |
| 655 | $(QUIET_SUBMAKE) $(MAKE) -s echo-info \ | ||
| 656 | `; \ | ||
| 657 | cd ${srcdir}/info ; \ | 658 | cd ${srcdir}/info ; \ |
| 658 | for elt in ${INFO_NONMISC} $${info_misc}; do \ | 659 | for elt in ${INFO_NONMISC} $${info_misc}; do \ |
| 659 | test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \ | 660 | test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \ |
| 660 | for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ | 661 | for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ |
| 661 | (cd $${thisdir}; \ | 662 | (cd "$${thisdir}"; \ |
| 662 | ${INSTALL_DATA} ${srcdir}/info/$$f $(DESTDIR)${infodir}/$$f); \ | 663 | ${INSTALL_DATA} ${srcdir}/info/$$f $(DESTDIR)${infodir}/$$f); \ |
| 663 | [ -n "${GZIP_PROG}" ] || continue ; \ | 664 | [ -n "${GZIP_PROG}" ] || continue ; \ |
| 664 | rm -f $(DESTDIR)${infodir}/$$f.gz; \ | 665 | rm -f $(DESTDIR)${infodir}/$$f.gz; \ |
| 665 | ${GZIP_PROG} -9n $(DESTDIR)${infodir}/$$f; \ | 666 | ${GZIP_PROG} -9n $(DESTDIR)${infodir}/$$f; \ |
| 666 | done; \ | 667 | done; \ |
| 667 | (cd $${thisdir}; \ | 668 | (cd "$${thisdir}"; \ |
| 668 | ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ | 669 | ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ |
| 669 | done) | 670 | done; \ |
| 671 | fi | ||
| 670 | 672 | ||
| 671 | ## "gzip || true" is because some gzips exit with non-zero status | 673 | ## "gzip || true" is because some gzips exit with non-zero status |
| 672 | ## if compression would not reduce the file size. Eg, the gzip in | 674 | ## if compression would not reduce the file size. Eg, the gzip in |
| @@ -680,7 +682,7 @@ install-man: | |||
| 680 | cd ${mansrcdir}; \ | 682 | cd ${mansrcdir}; \ |
| 681 | for page in *.1; do \ | 683 | for page in *.1; do \ |
| 682 | dest=`echo "$${page}" | sed -e 's/\.1$$//' -e '$(TRANSFORM)'`.1; \ | 684 | dest=`echo "$${page}" | sed -e 's/\.1$$//' -e '$(TRANSFORM)'`.1; \ |
| 683 | (cd $${thisdir}; \ | 685 | (cd "$${thisdir}"; \ |
| 684 | ${INSTALL_DATA} ${mansrcdir}/$${page} $(DESTDIR)${man1dir}/$${dest}); \ | 686 | ${INSTALL_DATA} ${mansrcdir}/$${page} $(DESTDIR)${man1dir}/$${dest}); \ |
| 685 | [ -n "${GZIP_PROG}" ] || continue ; \ | 687 | [ -n "${GZIP_PROG}" ] || continue ; \ |
| 686 | rm -f $(DESTDIR)${man1dir}/$${dest}.gz; \ | 688 | rm -f $(DESTDIR)${man1dir}/$${dest}.gz; \ |
| @@ -706,12 +708,12 @@ install-etc: | |||
| 706 | cd ${iconsrcdir} || exit 1; umask 022 ; \ | 708 | cd ${iconsrcdir} || exit 1; umask 022 ; \ |
| 707 | for dir in */*/apps */*/mimetypes; do \ | 709 | for dir in */*/apps */*/mimetypes; do \ |
| 708 | [ -d $${dir} ] || continue ; \ | 710 | [ -d $${dir} ] || continue ; \ |
| 709 | ( cd $${thisdir}; ${MKDIR_P} $(DESTDIR)${icondir}/$${dir} ) ; \ | 711 | ( cd "$${thisdir}"; ${MKDIR_P} $(DESTDIR)${icondir}/$${dir} ) ; \ |
| 710 | for icon in $${dir}/${EMACS_ICON}[.-]*; do \ | 712 | for icon in $${dir}/${EMACS_ICON}[.-]*; do \ |
| 711 | [ -r $${icon} ] || continue ; \ | 713 | [ -r $${icon} ] || continue ; \ |
| 712 | ext=`echo "$${icon}" | sed -e 's|.*\.||'`; \ | 714 | ext=`echo "$${icon}" | sed -e 's|.*\.||'`; \ |
| 713 | dest=`echo "$${icon}" | sed -e 's|.*/||' -e "s|\.$${ext}$$||" -e 's/$(EMACS_ICON)/emacs/' -e '$(TRANSFORM)'`.$${ext} ; \ | 715 | dest=`echo "$${icon}" | sed -e 's|.*/||' -e "s|\.$${ext}$$||" -e 's/$(EMACS_ICON)/emacs/' -e '$(TRANSFORM)'`.$${ext} ; \ |
| 714 | ( cd $${thisdir}; \ | 716 | ( cd "$${thisdir}"; \ |
| 715 | ${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${dir}/$${dest} ) \ | 717 | ${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${dir}/$${dest} ) \ |
| 716 | || exit 1; \ | 718 | || exit 1; \ |
| 717 | done ; \ | 719 | done ; \ |
| @@ -734,8 +736,8 @@ uninstall: uninstall-$(NTDIR) uninstall-doc | |||
| 734 | -unset CDPATH; \ | 736 | -unset CDPATH; \ |
| 735 | for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \ | 737 | for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \ |
| 736 | if [ -d $${dir} ]; then \ | 738 | if [ -d $${dir} ]; then \ |
| 737 | case `cd $${dir} ; /bin/pwd` in \ | 739 | case "`cd $${dir} ; /bin/pwd`" in \ |
| 738 | `cd ${srcdir} ; /bin/pwd`* ) ;; \ | 740 | "`cd ${srcdir} ; /bin/pwd`"* ) ;; \ |
| 739 | * ) rm -rf $${dir} ;; \ | 741 | * ) rm -rf $${dir} ;; \ |
| 740 | esac ; \ | 742 | esac ; \ |
| 741 | case $${dir} in \ | 743 | case $${dir} in \ |
| @@ -750,7 +752,7 @@ uninstall: uninstall-$(NTDIR) uninstall-doc | |||
| 750 | (info_misc=`cd doc/misc && $(QUIET_SUBMAKE) $(MAKE) -s echo-info`; \ | 752 | (info_misc=`cd doc/misc && $(QUIET_SUBMAKE) $(MAKE) -s echo-info`; \ |
| 751 | if cd $(DESTDIR)${infodir}; then \ | 753 | if cd $(DESTDIR)${infodir}; then \ |
| 752 | for elt in ${INFO_NONMISC} $${info_misc}; do \ | 754 | for elt in ${INFO_NONMISC} $${info_misc}; do \ |
| 753 | (cd $${thisdir}; \ | 755 | (cd "$${thisdir}"; \ |
| 754 | $(INSTALL_INFO) --remove --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ | 756 | $(INSTALL_INFO) --remove --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ |
| 755 | if [ -n "${GZIP_PROG}" ]; then \ | 757 | if [ -n "${GZIP_PROG}" ]; then \ |
| 756 | ext=.gz; else ext=; fi; \ | 758 | ext=.gz; else ext=; fi; \ |
diff --git a/admin/ChangeLog b/admin/ChangeLog index 31247765a26..9d5eda1cadf 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * unidata/Makefile.in (emacs, ${DSTDIR}/charprop.el): | ||
| 4 | Quote entities that might contain whitespace. | ||
| 5 | |||
| 1 | 2013-10-07 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2013-10-07 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Improve support for popcount and counting trailing zeros (Bug#15550). | 8 | Improve support for popcount and counting trailing zeros (Bug#15550). |
diff --git a/admin/unidata/Makefile.in b/admin/unidata/Makefile.in index df225cc8cbf..91fb5a07305 100644 --- a/admin/unidata/Makefile.in +++ b/admin/unidata/Makefile.in | |||
| @@ -30,7 +30,7 @@ abs_top_builddir = @abs_top_builddir@ | |||
| 30 | 30 | ||
| 31 | EMACS = ${abs_top_builddir}/src/emacs | 31 | EMACS = ${abs_top_builddir}/src/emacs |
| 32 | DSTDIR = ${top_srcdir}/lisp/international | 32 | DSTDIR = ${top_srcdir}/lisp/international |
| 33 | emacs = ${EMACS} -batch --no-site-file --no-site-lisp | 33 | emacs = "${EMACS}" -batch --no-site-file --no-site-lisp |
| 34 | 34 | ||
| 35 | all: ${DSTDIR}/charprop.el | 35 | all: ${DSTDIR}/charprop.el |
| 36 | 36 | ||
| @@ -42,7 +42,7 @@ unidata.txt: ${srcdir}/UnicodeData.txt | |||
| 42 | 42 | ||
| 43 | ${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.elc unidata.txt | 43 | ${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.elc unidata.txt |
| 44 | cd ${DSTDIR} && ${emacs} -l ${srcdir}/unidata-gen \ | 44 | cd ${DSTDIR} && ${emacs} -l ${srcdir}/unidata-gen \ |
| 45 | -f unidata-gen-files ${srcdir} ${abs_builddir}/unidata.txt | 45 | -f unidata-gen-files ${srcdir} "${abs_builddir}/unidata.txt" |
| 46 | 46 | ||
| 47 | ## Like the above, but generate in PWD rather than lisp/international. | 47 | ## Like the above, but generate in PWD rather than lisp/international. |
| 48 | charprop.el: ${srcdir}/unidata-gen.elc unidata.txt | 48 | charprop.el: ${srcdir}/unidata-gen.elc unidata.txt |
diff --git a/configure.ac b/configure.ac index ee6d6959ba6..d88f1d39b66 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -419,30 +419,6 @@ AC_ARG_ENABLE(gtk-deprecation-warnings, | |||
| 419 | [Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0])], | 419 | [Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0])], |
| 420 | [ac_enable_gtk_deprecation_warnings="${enableval}"],[]) | 420 | [ac_enable_gtk_deprecation_warnings="${enableval}"],[]) |
| 421 | 421 | ||
| 422 | #### Make srcdir absolute, if it isn't already. It's important to | ||
| 423 | #### avoid running the file name through pwd unnecessarily, since pwd can | ||
| 424 | #### give you automounter prefixes, which can go away. We do all this | ||
| 425 | #### so Emacs can find its files when run uninstalled. | ||
| 426 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | ||
| 427 | unset CDPATH | ||
| 428 | case "${srcdir}" in | ||
| 429 | [[\\/]]* | ?:[[\\/]]*) ;; | ||
| 430 | . ) | ||
| 431 | ## We may be able to use the $PWD environment variable to make this | ||
| 432 | ## absolute. But sometimes PWD is inaccurate. | ||
| 433 | ## Note: we used to use $PWD at the end instead of `pwd`, | ||
| 434 | ## but that tested only for a well-formed and valid PWD, | ||
| 435 | ## it did not object when PWD was well-formed and valid but just wrong. | ||
| 436 | if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ; | ||
| 437 | then | ||
| 438 | srcdir="$PWD" | ||
| 439 | else | ||
| 440 | srcdir=`(cd "$srcdir"; pwd)` | ||
| 441 | fi | ||
| 442 | ;; | ||
| 443 | * ) srcdir=`(cd "$srcdir"; pwd)` ;; | ||
| 444 | esac | ||
| 445 | |||
| 446 | #### When building with MinGW inside the MSYS tree, 'pwd' produces | 422 | #### When building with MinGW inside the MSYS tree, 'pwd' produces |
| 447 | #### directories relative to the root of the MSYS tree, | 423 | #### directories relative to the root of the MSYS tree, |
| 448 | #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When | 424 | #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When |
| @@ -452,7 +428,7 @@ esac | |||
| 452 | #### substitution, it cannot find the data directory. "pwd -W" | 428 | #### substitution, it cannot find the data directory. "pwd -W" |
| 453 | #### produces Windows-style 'd:/foo/bar' absolute directory names, so | 429 | #### produces Windows-style 'd:/foo/bar' absolute directory names, so |
| 454 | #### we use it here to countermand that lossage. | 430 | #### we use it here to countermand that lossage. |
| 455 | test "$MSYSTEM" = "MINGW32" && srcdir=`(cd "$srcdir"; pwd -W | sed -e 's,^\([[A-Za-z]]\):,/\1,')` | 431 | test "$MSYSTEM" = "MINGW32" && abs_srcdir=`(cd "$abs_srcdir"; pwd -W | sed -e 's,^\([[A-Za-z]]\):,/\1,')` |
| 456 | 432 | ||
| 457 | ### Canonicalize the configuration name. | 433 | ### Canonicalize the configuration name. |
| 458 | 434 | ||
diff --git a/leim/ChangeLog b/leim/ChangeLog index 11186603df8..4a629765386 100644 --- a/leim/ChangeLog +++ b/leim/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (abs_srcdir): New, set by configure. | ||
| 4 | (buildlisppath): Use abs_srcdir. | ||
| 5 | (RUN_EMACS, .el.elc, changed.tit, changed.misc, leim-list.el) | ||
| 6 | ($(srcdir)/ja-dic/ja-dic.el, setwins, distclean, check-declare): | ||
| 7 | Quote entities that might contain whitespace. | ||
| 8 | |||
| 1 | 2013-09-05 Jean Haidouk <haidouk@yandex.com> (tiny change) | 9 | 2013-09-05 Jean Haidouk <haidouk@yandex.com> (tiny change) |
| 2 | 10 | ||
| 3 | * quail/latin-alt.el ("french-alt-postfix", "latin-alt-postfix"): | 11 | * quail/latin-alt.el ("french-alt-postfix", "latin-alt-postfix"): |
diff --git a/leim/Makefile.in b/leim/Makefile.in index 7c3f3ca47e1..eb81e1b2add 100644 --- a/leim/Makefile.in +++ b/leim/Makefile.in | |||
| @@ -25,16 +25,17 @@ SHELL = @SHELL@ | |||
| 25 | 25 | ||
| 26 | # Here are the things that we expect ../configure to edit. | 26 | # Here are the things that we expect ../configure to edit. |
| 27 | srcdir=@srcdir@ | 27 | srcdir=@srcdir@ |
| 28 | abs_srcdir=@abs_srcdir@ | ||
| 28 | 29 | ||
| 29 | # Which Emacs to use to convert TIT files to Emacs Lisp files, | 30 | # Which Emacs to use to convert TIT files to Emacs Lisp files, |
| 30 | # byte-compile Emacs Lisp files, and generate the file leim-list.el. | 31 | # byte-compile Emacs Lisp files, and generate the file leim-list.el. |
| 31 | EMACS = ../src/emacs | 32 | EMACS = ../src/emacs |
| 32 | 33 | ||
| 33 | buildlisppath=${srcdir}/../lisp | 34 | buildlisppath=${abs_srcdir}/../lisp |
| 34 | 35 | ||
| 35 | # How to run Emacs. | 36 | # How to run Emacs. |
| 36 | RUN_EMACS = EMACSLOADPATH=$(buildlisppath) LC_ALL=C \ | 37 | RUN_EMACS = EMACSLOADPATH="$(buildlisppath)" LC_ALL=C \ |
| 37 | ${EMACS} -batch --no-site-file --no-site-lisp | 38 | "${EMACS}" -batch --no-site-file --no-site-lisp |
| 38 | 39 | ||
| 39 | MKDIR_P = @MKDIR_P@ | 40 | MKDIR_P = @MKDIR_P@ |
| 40 | 41 | ||
| @@ -76,7 +77,7 @@ TIT_MISC=${CHINESE_TIT} ${MISC} | |||
| 76 | 77 | ||
| 77 | .el.elc: | 78 | .el.elc: |
| 78 | @echo Compiling $< | 79 | @echo Compiling $< |
| 79 | @${RUN_EMACS} -l ${buildlisppath}/international/quail -f batch-byte-compile $< | 80 | @${RUN_EMACS} -l "${buildlisppath}/international/quail" -f batch-byte-compile $< |
| 80 | 81 | ||
| 81 | all: leim-list.el compile-main | 82 | all: leim-list.el compile-main |
| 82 | .PHONY: all | 83 | .PHONY: all |
| @@ -109,7 +110,7 @@ ${CHINESE_TIT}: changed.tit | |||
| 109 | ## It doesn't seem possible to do this with VPATH and suffix rules. | 110 | ## It doesn't seem possible to do this with VPATH and suffix rules. |
| 110 | changed.tit: ${TIT_SOURCES} | 111 | changed.tit: ${TIT_SOURCES} |
| 111 | @${MKDIR_P} quail | 112 | @${MKDIR_P} quail |
| 112 | ${RUN_EMACS} -l ${buildlisppath}/international/titdic-cnv \ | 113 | ${RUN_EMACS} -l "${buildlisppath}/international/titdic-cnv" \ |
| 113 | -f batch-titdic-convert -dir quail ${srcdir}/CXTERM-DIC; \ | 114 | -f batch-titdic-convert -dir quail ${srcdir}/CXTERM-DIC; \ |
| 114 | echo "changed" > $@ | 115 | echo "changed" > $@ |
| 115 | 116 | ||
| @@ -126,30 +127,30 @@ ${MISC}: changed.misc | |||
| 126 | 127 | ||
| 127 | changed.misc: ${MISC_SOURCES} | 128 | changed.misc: ${MISC_SOURCES} |
| 128 | @${MKDIR_P} quail | 129 | @${MKDIR_P} quail |
| 129 | ${RUN_EMACS} -l ${buildlisppath}/international/titdic-cnv \ | 130 | ${RUN_EMACS} -l "${buildlisppath}/international/titdic-cnv" \ |
| 130 | -f batch-miscdic-convert -dir quail ${srcdir}/MISC-DIC; \ | 131 | -f batch-miscdic-convert -dir quail ${srcdir}/MISC-DIC; \ |
| 131 | echo "changed" > $@ | 132 | echo "changed" > $@ |
| 132 | 133 | ||
| 133 | leim-list.el: ${TIT_MISC} ${srcdir}/leim-ext.el | 134 | leim-list.el: ${TIT_MISC} ${srcdir}/leim-ext.el |
| 134 | rm -f leim-list.el | 135 | rm -f leim-list.el |
| 135 | if [ x`cd ${srcdir} && /bin/pwd` = x`/bin/pwd` ] ; then \ | 136 | if [ "`cd ${srcdir} && /bin/pwd`" = "`/bin/pwd`" ] ; then \ |
| 136 | ${RUN_EMACS} -l ${buildlisppath}/international/quail \ | 137 | ${RUN_EMACS} -l "${buildlisppath}/international/quail" \ |
| 137 | --eval "(update-leim-list-file \".\")" ; \ | 138 | --eval "(update-leim-list-file \".\")" ; \ |
| 138 | else \ | 139 | else \ |
| 139 | ${RUN_EMACS} -l ${buildlisppath}/international/quail \ | 140 | ${RUN_EMACS} -l "${buildlisppath}/international/quail" \ |
| 140 | --eval "(update-leim-list-file \".\" (unmsys--file-name \"${srcdir}\"))" ; \ | 141 | --eval "(update-leim-list-file \".\" (unmsys--file-name \"${srcdir}\"))" ; \ |
| 141 | fi | 142 | fi |
| 142 | sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@ | 143 | sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@ |
| 143 | 144 | ||
| 144 | $(srcdir)/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L | 145 | $(srcdir)/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L |
| 145 | @$(MKDIR_P) $(srcdir)/ja-dic | 146 | @$(MKDIR_P) $(srcdir)/ja-dic |
| 146 | $(RUN_EMACS) -batch -l $(buildlisppath)/international/ja-dic-cnv \ | 147 | $(RUN_EMACS) -batch -l "$(buildlisppath)/international/ja-dic-cnv" \ |
| 147 | -f batch-skkdic-convert -dir "$(srcdir)/ja-dic" \ | 148 | -f batch-skkdic-convert -dir "$(srcdir)/ja-dic" \ |
| 148 | "$(srcdir)/SKK-DIC/SKK-JISYO.L" | 149 | "$(srcdir)/SKK-DIC/SKK-JISYO.L" |
| 149 | 150 | ||
| 150 | ## Following adapted from lisp/Makefile.in. | 151 | ## Following adapted from lisp/Makefile.in. |
| 151 | setwins=wins="${srcdir}/ja-dic quail"; \ | 152 | setwins=wins="${srcdir}/ja-dic quail"; \ |
| 152 | [ `cd ${srcdir} && /bin/pwd` != `/bin/pwd` ] && \ | 153 | [ "`cd ${srcdir} && /bin/pwd`" != "`/bin/pwd`" ] && \ |
| 153 | wins="$$wins ${srcdir}/quail" | 154 | wins="$$wins ${srcdir}/quail" |
| 154 | 155 | ||
| 155 | .PHONY: compile-targets | 156 | .PHONY: compile-targets |
| @@ -184,7 +185,7 @@ bootstrap-clean: clean | |||
| 184 | $(setwins); for w in $$wins; do rm -f $$w/*.elc; done | 185 | $(setwins); for w in $$wins; do rm -f $$w/*.elc; done |
| 185 | 186 | ||
| 186 | distclean: clean | 187 | distclean: clean |
| 187 | -[ `cd ${srcdir} && /bin/pwd` != `/bin/pwd` ] && rm -rf quail | 188 | -[ "`cd ${srcdir} && /bin/pwd`" != "`/bin/pwd`" ] && rm -rf quail |
| 188 | rm -f Makefile | 189 | rm -f Makefile |
| 189 | 190 | ||
| 190 | maintainer-clean: distclean bootstrap-clean | 191 | maintainer-clean: distclean bootstrap-clean |
| @@ -195,5 +196,5 @@ extraclean: maintainer-clean | |||
| 195 | .PHONY: check-declare | 196 | .PHONY: check-declare |
| 196 | 197 | ||
| 197 | check-declare: | 198 | check-declare: |
| 198 | $(RUN_EMACS) -l $(buildlisppath)/emacs-lisp/check-declare \ | 199 | $(RUN_EMACS) -l "$(buildlisppath)/emacs-lisp/check-declare" \ |
| 199 | --eval '(check-declare-directory (unmsys--file-name "$(srcdir)"))' | 200 | --eval '(check-declare-directory (unmsys--file-name "$(srcdir)"))' |
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 0b91cc4887f..46faf95c0c0 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in ($(DESTDIR)${archlibdir}): | ||
| 4 | Quote entities that might contain whitespace. | ||
| 5 | |||
| 1 | 2013-10-10 Glenn Morris <rgm@gnu.org> | 6 | 2013-10-10 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * make-docfile.c (search_lisp_doc_at_eol): | 8 | * make-docfile.c (search_lisp_doc_at_eol): |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 994eb2bb266..01c03e162cc 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -232,7 +232,7 @@ $(DESTDIR)${archlibdir}: all | |||
| 232 | @echo | 232 | @echo |
| 233 | @echo "Installing utilities run internally by Emacs." | 233 | @echo "Installing utilities run internally by Emacs." |
| 234 | umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir} | 234 | umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir} |
| 235 | if [ `cd $(DESTDIR)${archlibdir} && /bin/pwd` != `/bin/pwd` ]; then \ | 235 | if [ "`cd $(DESTDIR)${archlibdir} && /bin/pwd`" != "`/bin/pwd`" ]; then \ |
| 236 | for file in ${UTILITIES}; do \ | 236 | for file in ${UTILITIES}; do \ |
| 237 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ | 237 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ |
| 238 | done ; \ | 238 | done ; \ |
| @@ -244,8 +244,8 @@ $(DESTDIR)${archlibdir}: all | |||
| 244 | chown ${gameuser} $(DESTDIR)${gamedir}; \ | 244 | chown ${gameuser} $(DESTDIR)${gamedir}; \ |
| 245 | chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ | 245 | chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ |
| 246 | fi | 246 | fi |
| 247 | if [ `cd $(DESTDIR)${archlibdir} && /bin/pwd` \ | 247 | if [ "`cd $(DESTDIR)${archlibdir} && /bin/pwd`" \ |
| 248 | != `cd ${srcdir} && /bin/pwd` ]; then \ | 248 | != "`cd ${srcdir} && /bin/pwd`" ]; then \ |
| 249 | for file in ${SCRIPTS}; do \ | 249 | for file in ${SCRIPTS}; do \ |
| 250 | $(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \ | 250 | $(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \ |
| 251 | done ; \ | 251 | done ; \ |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2dbd981d8d5..ba2046e15b4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2013-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (abs_srcdir, abs_lisp): New, set by configure. | ||
| 4 | (emacs, compile, compile-always): | ||
| 5 | Quote entities that might contain whitespace. | ||
| 6 | (custom-deps, finder-data, autoloads): Use abs_lisp. | ||
| 7 | ($(MH_E_DIR)/mh-loaddefs.el, $(TRAMP_DIR)/tramp-loaddefs.el) | ||
| 8 | ($(CAL_DIR)/cal-loaddefs.el, $(CAL_DIR)/diary-loaddefs.el) | ||
| 9 | ($(CAL_DIR)/hol-loaddefs.el): Manually expand target file name. | ||
| 10 | |||
| 1 | 2013-10-23 Dmitry Gutov <dgutov@yandex.ru> | 11 | 2013-10-23 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 12 | ||
| 3 | * progmodes/ruby-mode.el (ruby-smie--at-dot-call): Use | 13 | * progmodes/ruby-mode.el (ruby-smie--at-dot-call): Use |
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 4fba1053dfa..814aefc0cc0 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -20,8 +20,10 @@ | |||
| 20 | SHELL = @SHELL@ | 20 | SHELL = @SHELL@ |
| 21 | 21 | ||
| 22 | srcdir = @srcdir@ | 22 | srcdir = @srcdir@ |
| 23 | abs_srcdir = @abs_srcdir@ | ||
| 23 | top_srcdir = @top_srcdir@ | 24 | top_srcdir = @top_srcdir@ |
| 24 | abs_top_builddir = @abs_top_builddir@ | 25 | abs_top_builddir = @abs_top_builddir@ |
| 26 | abs_lisp = $(abs_srcdir) | ||
| 25 | lisp = $(srcdir) | 27 | lisp = $(srcdir) |
| 26 | VPATH = $(srcdir) | 28 | VPATH = $(srcdir) |
| 27 | 29 | ||
| @@ -112,7 +114,7 @@ COMPILE_FIRST = \ | |||
| 112 | 114 | ||
| 113 | # The actual Emacs command run in the targets below. | 115 | # The actual Emacs command run in the targets below. |
| 114 | 116 | ||
| 115 | emacs = EMACSLOADPATH=$(lisp) LC_ALL=C $(EMACS) $(EMACSOPT) | 117 | emacs = EMACSLOADPATH="$(abs_lisp)" LC_ALL=C "$(EMACS)" $(EMACSOPT) |
| 116 | 118 | ||
| 117 | # Common command to find subdirectories | 119 | # Common command to find subdirectories |
| 118 | setwins=subdirs=`find . -type d -print`; \ | 120 | setwins=subdirs=`find . -type d -print`; \ |
| @@ -165,14 +167,14 @@ $(lisp)/cus-load.el: | |||
| 165 | custom-deps: doit | 167 | custom-deps: doit |
| 166 | cd $(lisp); $(setwins_almost); \ | 168 | cd $(lisp); $(setwins_almost); \ |
| 167 | echo Directories: $$wins; \ | 169 | echo Directories: $$wins; \ |
| 168 | $(emacs) -l cus-dep --eval '(setq generated-custom-dependencies-file (unmsys--file-name "$(lisp)/cus-load.el"))' -f custom-make-dependencies $$wins | 170 | $(emacs) -l cus-dep --eval '(setq generated-custom-dependencies-file (unmsys--file-name "$(abs_lisp)/cus-load.el"))' -f custom-make-dependencies $$wins |
| 169 | 171 | ||
| 170 | $(lisp)/finder-inf.el: | 172 | $(lisp)/finder-inf.el: |
| 171 | $(MAKE) $(MFLAGS) finder-data | 173 | $(MAKE) $(MFLAGS) finder-data |
| 172 | finder-data: doit | 174 | finder-data: doit |
| 173 | cd $(lisp); $(setwins_almost); \ | 175 | cd $(lisp); $(setwins_almost); \ |
| 174 | echo Directories: $$wins; \ | 176 | echo Directories: $$wins; \ |
| 175 | $(emacs) -l finder --eval '(setq generated-finder-keywords-file (unmsys--file-name "$(lisp)/finder-inf.el"))' -f finder-compile-keywords-make-dist $$wins | 177 | $(emacs) -l finder --eval '(setq generated-finder-keywords-file (unmsys--file-name "$(abs_lisp)/finder-inf.el"))' -f finder-compile-keywords-make-dist $$wins |
| 176 | 178 | ||
| 177 | # The chmod +w is to handle env var CVSREAD=1. | 179 | # The chmod +w is to handle env var CVSREAD=1. |
| 178 | autoloads: $(LOADDEFS) doit | 180 | autoloads: $(LOADDEFS) doit |
| @@ -181,7 +183,7 @@ autoloads: $(LOADDEFS) doit | |||
| 181 | echo Directories: $$wins; \ | 183 | echo Directories: $$wins; \ |
| 182 | $(emacs) -l autoload \ | 184 | $(emacs) -l autoload \ |
| 183 | --eval '(setq autoload-builtin-package-versions t)' \ | 185 | --eval '(setq autoload-builtin-package-versions t)' \ |
| 184 | --eval '(setq generated-autoload-file (unmsys--file-name "$(lisp)/loaddefs.el"))' \ | 186 | --eval '(setq generated-autoload-file (unmsys--file-name "$(abs_lisp)/loaddefs.el"))' \ |
| 185 | -f batch-update-autoloads $$wins | 187 | -f batch-update-autoloads $$wins |
| 186 | 188 | ||
| 187 | # This is required by the bootstrap-emacs target in ../src/Makefile, so | 189 | # This is required by the bootstrap-emacs target in ../src/Makefile, so |
| @@ -307,14 +309,14 @@ compile-clean: | |||
| 307 | # Explicitly pass EMACS (sometimes ../src/bootstrap-emacs) to those | 309 | # Explicitly pass EMACS (sometimes ../src/bootstrap-emacs) to those |
| 308 | # sub-makes that run rules that use it, for the sake of some non-GNU makes. | 310 | # sub-makes that run rules that use it, for the sake of some non-GNU makes. |
| 309 | compile: $(LOADDEFS) autoloads compile-first | 311 | compile: $(LOADDEFS) autoloads compile-first |
| 310 | $(MAKE) $(MFLAGS) compile-main EMACS=$(EMACS) | 312 | $(MAKE) $(MFLAGS) compile-main EMACS="$(EMACS)" |
| 311 | 313 | ||
| 312 | # Compile all Lisp files. This is like `compile' but compiles files | 314 | # Compile all Lisp files. This is like `compile' but compiles files |
| 313 | # unconditionally. Some files don't actually get compiled because they | 315 | # unconditionally. Some files don't actually get compiled because they |
| 314 | # set the local variable no-byte-compile. | 316 | # set the local variable no-byte-compile. |
| 315 | compile-always: doit | 317 | compile-always: doit |
| 316 | cd $(lisp); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc | 318 | cd $(lisp); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc |
| 317 | $(MAKE) $(MFLAGS) compile EMACS=$(EMACS) | 319 | $(MAKE) $(MFLAGS) compile EMACS="$(EMACS)" |
| 318 | 320 | ||
| 319 | .PHONY: compile-calc backup-compiled-files compile-after-backup | 321 | .PHONY: compile-calc backup-compiled-files compile-after-backup |
| 320 | 322 | ||
| @@ -378,7 +380,7 @@ mh-autoloads: $(MH_E_DIR)/mh-loaddefs.el | |||
| 378 | $(MH_E_DIR)/mh-loaddefs.el: $(MH_E_SRC) | 380 | $(MH_E_DIR)/mh-loaddefs.el: $(MH_E_SRC) |
| 379 | $(emacs) -l autoload \ | 381 | $(emacs) -l autoload \ |
| 380 | --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ | 382 | --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ |
| 381 | --eval "(setq generated-autoload-file (unmsys--file-name \"$@\"))" \ | 383 | --eval "(setq generated-autoload-file (unmsys--file-name (expand-file-name \"$@\")))" \ |
| 382 | --eval "(setq make-backup-files nil)" \ | 384 | --eval "(setq make-backup-files nil)" \ |
| 383 | -f batch-update-autoloads $(MH_E_DIR) | 385 | -f batch-update-autoloads $(MH_E_DIR) |
| 384 | 386 | ||
| @@ -396,7 +398,7 @@ TRAMP_SRC = $(TRAMP_DIR)/tramp.el $(TRAMP_DIR)/tramp-adb.el \ | |||
| 396 | $(TRAMP_DIR)/tramp-loaddefs.el: $(TRAMP_SRC) | 398 | $(TRAMP_DIR)/tramp-loaddefs.el: $(TRAMP_SRC) |
| 397 | $(emacs) -l autoload \ | 399 | $(emacs) -l autoload \ |
| 398 | --eval "(setq generate-autoload-cookie \";;;###tramp-autoload\")" \ | 400 | --eval "(setq generate-autoload-cookie \";;;###tramp-autoload\")" \ |
| 399 | --eval "(setq generated-autoload-file (unmsys--file-name \"$@\"))" \ | 401 | --eval "(setq generated-autoload-file (unmsys--file-name (expand-file-name \"$@\")))" \ |
| 400 | --eval "(setq make-backup-files nil)" \ | 402 | --eval "(setq make-backup-files nil)" \ |
| 401 | -f batch-update-autoloads $(TRAMP_DIR) | 403 | -f batch-update-autoloads $(TRAMP_DIR) |
| 402 | 404 | ||
| @@ -418,21 +420,21 @@ CAL_SRC = $(CAL_DIR)/cal-bahai.el $(CAL_DIR)/cal-china.el \ | |||
| 418 | $(CAL_DIR)/cal-loaddefs.el: $(CAL_SRC) | 420 | $(CAL_DIR)/cal-loaddefs.el: $(CAL_SRC) |
| 419 | $(emacs) -l autoload \ | 421 | $(emacs) -l autoload \ |
| 420 | --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \ | 422 | --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \ |
| 421 | --eval "(setq generated-autoload-file (unmsys--file-name \"$@\"))" \ | 423 | --eval "(setq generated-autoload-file (unmsys--file-name (expand-file-name \"$@\")))" \ |
| 422 | --eval "(setq make-backup-files nil)" \ | 424 | --eval "(setq make-backup-files nil)" \ |
| 423 | -f batch-update-autoloads $(CAL_DIR) | 425 | -f batch-update-autoloads $(CAL_DIR) |
| 424 | 426 | ||
| 425 | $(CAL_DIR)/diary-loaddefs.el: $(CAL_SRC) | 427 | $(CAL_DIR)/diary-loaddefs.el: $(CAL_SRC) |
| 426 | $(emacs) -l autoload \ | 428 | $(emacs) -l autoload \ |
| 427 | --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \ | 429 | --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \ |
| 428 | --eval "(setq generated-autoload-file (unmsys--file-name \"$@\"))" \ | 430 | --eval "(setq generated-autoload-file (unmsys--file-name (expand-file-name \"$@\")))" \ |
| 429 | --eval "(setq make-backup-files nil)" \ | 431 | --eval "(setq make-backup-files nil)" \ |
| 430 | -f batch-update-autoloads $(CAL_DIR) | 432 | -f batch-update-autoloads $(CAL_DIR) |
| 431 | 433 | ||
| 432 | $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC) | 434 | $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC) |
| 433 | $(emacs) -l autoload \ | 435 | $(emacs) -l autoload \ |
| 434 | --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \ | 436 | --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \ |
| 435 | --eval "(setq generated-autoload-file (unmsys--file-name \"$@\"))" \ | 437 | --eval "(setq generated-autoload-file (unmsys--file-name (expand-file-name \"$@\")))" \ |
| 436 | --eval "(setq make-backup-files nil)" \ | 438 | --eval "(setq make-backup-files nil)" \ |
| 437 | -f batch-update-autoloads $(CAL_DIR) | 439 | -f batch-update-autoloads $(CAL_DIR) |
| 438 | 440 | ||
diff --git a/nextstep/ChangeLog b/nextstep/ChangeLog index 42086ec1007..7d3cceba205 100644 --- a/nextstep/ChangeLog +++ b/nextstep/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (${ns_check_file} ${ns_appdir}): | ||
| 4 | Quote entities that might contain whitespace. | ||
| 5 | |||
| 1 | 2013-09-02 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2013-09-02 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * Makefile.in (${ns_check_file}): Add so Emacs.app gets properly | 8 | * Makefile.in (${ns_check_file}): Add so Emacs.app gets properly |
diff --git a/nextstep/Makefile.in b/nextstep/Makefile.in index 3d80ddb7ad2..b5377232e31 100644 --- a/nextstep/Makefile.in +++ b/nextstep/Makefile.in | |||
| @@ -38,7 +38,7 @@ ${ns_check_file} ${ns_appdir}: ${srcdir}/${ns_appsrc} ${ns_appsrc} | |||
| 38 | ${MKDIR_P} ${ns_appdir} | 38 | ${MKDIR_P} ${ns_appdir} |
| 39 | ( cd ${srcdir}/${ns_appsrc} ; tar cfh - . ) | \ | 39 | ( cd ${srcdir}/${ns_appsrc} ; tar cfh - . ) | \ |
| 40 | ( cd ${ns_appdir} ; umask 022; tar xf - ) | 40 | ( cd ${ns_appdir} ; umask 022; tar xf - ) |
| 41 | [ `cd ${srcdir} && /bin/pwd` = `/bin/pwd` ] || \ | 41 | [ "`cd ${srcdir} && /bin/pwd`" = "`/bin/pwd`" ] || \ |
| 42 | ( cd ${ns_appsrc} ; tar cfh - . ) | \ | 42 | ( cd ${ns_appsrc} ; tar cfh - . ) | \ |
| 43 | ( cd ${ns_appdir} ; umask 022; tar xf - ) | 43 | ( cd ${ns_appdir} ; umask 022; tar xf - ) |
| 44 | touch ${ns_appdir} | 44 | touch ${ns_appdir} |
diff --git a/nt/ChangeLog b/nt/ChangeLog index b8bbddda6e5..a04a67b7ce9 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in ($(DESTDIR)${archlibdir}): | ||
| 4 | Quote entities that might contain whitespace. | ||
| 5 | |||
| 1 | 2013-10-14 Eli Zaretskii <eliz@gnu.org> | 6 | 2013-10-14 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * inc/mingw_time.h: New file. | 8 | * inc/mingw_time.h: New file. |
diff --git a/nt/Makefile.in b/nt/Makefile.in index 0b7318c9b49..cc640152cb6 100644 --- a/nt/Makefile.in +++ b/nt/Makefile.in | |||
| @@ -142,7 +142,7 @@ $(DESTDIR)${archlibdir}: all | |||
| 142 | @echo | 142 | @echo |
| 143 | @echo "Installing utilities run internally by Emacs." | 143 | @echo "Installing utilities run internally by Emacs." |
| 144 | umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir} | 144 | umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir} |
| 145 | if [ `cd $(DESTDIR)${archlibdir} && /bin/pwd` != `/bin/pwd` ]; then \ | 145 | if [ "`cd $(DESTDIR)${archlibdir} && /bin/pwd`" != "`/bin/pwd`" ]; then \ |
| 146 | for file in ${UTILITIES}; do \ | 146 | for file in ${UTILITIES}; do \ |
| 147 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ | 147 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ |
| 148 | done ; \ | 148 | done ; \ |
diff --git a/src/ChangeLog b/src/ChangeLog index b534e0a1ab0..52669b57825 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (RUN_TEMACS): Make relative (again). | ||
| 4 | ($(leimdir)/leim-list.el, .el.elc, $(lispsource)/loaddefs.el) | ||
| 5 | (bootstrap-emacs$(EXEEXT)): | ||
| 6 | Quote entities that might contain whitespace. | ||
| 7 | |||
| 1 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | Port to Solaris 10 and its bundled GCC. | 10 | Port to Solaris 10 and its bundled GCC. |
diff --git a/src/Makefile.in b/src/Makefile.in index 254aa175d49..ce65b190334 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -313,7 +313,7 @@ INTERVALS_H = dispextern.h intervals.h composite.h | |||
| 313 | 313 | ||
| 314 | GETLOADAVG_LIBS = @GETLOADAVG_LIBS@ | 314 | GETLOADAVG_LIBS = @GETLOADAVG_LIBS@ |
| 315 | 315 | ||
| 316 | RUN_TEMACS = `/bin/pwd`/temacs | 316 | RUN_TEMACS = ./temacs |
| 317 | 317 | ||
| 318 | ## Invoke ../nt/addsection for MinGW, ":" elsewhere. | 318 | ## Invoke ../nt/addsection for MinGW, ":" elsewhere. |
| 319 | TEMACS_POST_LINK = @TEMACS_POST_LINK@ | 319 | TEMACS_POST_LINK = @TEMACS_POST_LINK@ |
| @@ -437,7 +437,7 @@ all: emacs$(EXEEXT) $(OTHER_FILES) | |||
| 437 | .PHONY: all | 437 | .PHONY: all |
| 438 | 438 | ||
| 439 | $(leimdir)/leim-list.el: bootstrap-emacs$(EXEEXT) | 439 | $(leimdir)/leim-list.el: bootstrap-emacs$(EXEEXT) |
| 440 | cd $(leimdir) && $(MAKE) $(MFLAGS) leim-list.el EMACS=$(bootstrap_exe) | 440 | cd $(leimdir) && $(MAKE) $(MFLAGS) leim-list.el EMACS="$(bootstrap_exe)" |
| 441 | 441 | ||
| 442 | ## The dumped Emacs is as functional and more efficient than | 442 | ## The dumped Emacs is as functional and more efficient than |
| 443 | ## bootstrap-emacs, so we replace the latter with the former. | 443 | ## bootstrap-emacs, so we replace the latter with the former. |
| @@ -646,7 +646,7 @@ tags: TAGS TAGS-LISP $(lwlibdir)/TAGS | |||
| 646 | ## With GNU Make, we would just say "%.el : %.elc $(BOOTSTRAPEMACS)" | 646 | ## With GNU Make, we would just say "%.el : %.elc $(BOOTSTRAPEMACS)" |
| 647 | .el.elc: | 647 | .el.elc: |
| 648 | @cd ../lisp; $(MAKE) $(MFLAGS) compile-onefile \ | 648 | @cd ../lisp; $(MAKE) $(MFLAGS) compile-onefile \ |
| 649 | THEFILE=$< EMACS=$(bootstrap_exe) | 649 | THEFILE=$< EMACS="$(bootstrap_exe)" |
| 650 | 650 | ||
| 651 | ## Since the .el.elc rule cannot specify an extra dependency, we do it here. | 651 | ## Since the .el.elc rule cannot specify an extra dependency, we do it here. |
| 652 | $(lisp): $(BOOTSTRAPEMACS) | 652 | $(lisp): $(BOOTSTRAPEMACS) |
| @@ -657,7 +657,7 @@ $(lisp): $(BOOTSTRAPEMACS) | |||
| 657 | VCSWITNESS = | 657 | VCSWITNESS = |
| 658 | 658 | ||
| 659 | $(lispsource)/loaddefs.el: $(BOOTSTRAPEMACS) $(VCSWITNESS) | 659 | $(lispsource)/loaddefs.el: $(BOOTSTRAPEMACS) $(VCSWITNESS) |
| 660 | cd ../lisp; $(MAKE) $(MFLAGS) autoloads EMACS=$(bootstrap_exe) | 660 | cd ../lisp; $(MAKE) $(MFLAGS) autoloads EMACS="$(bootstrap_exe)" |
| 661 | 661 | ||
| 662 | ## Dump an Emacs executable named bootstrap-emacs containing the | 662 | ## Dump an Emacs executable named bootstrap-emacs containing the |
| 663 | ## files from loadup.el in source form. | 663 | ## files from loadup.el in source form. |
| @@ -672,7 +672,7 @@ bootstrap-emacs$(EXEEXT): temacs$(EXEEXT) | |||
| 672 | mv -f emacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \ | 672 | mv -f emacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \ |
| 673 | fi | 673 | fi |
| 674 | @: Compile some files earlier to speed up further compilation. | 674 | @: Compile some files earlier to speed up further compilation. |
| 675 | cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=$(bootstrap_exe) | 675 | cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS="$(bootstrap_exe)" |
| 676 | 676 | ||
| 677 | ## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk. | 677 | ## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk. |
| 678 | @deps_frag@ | 678 | @deps_frag@ |
diff --git a/test/ChangeLog b/test/ChangeLog index 71104b64364..358ef31b1bb 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2013-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * automated/Makefile.in (abs_top_srcdir, top_builddir): | ||
| 4 | New, set by configure. | ||
| 5 | (top_srcdir): Remove. | ||
| 6 | (abs_test, abs_lispsrc): New. | ||
| 7 | (lisp): No longer absolute. | ||
| 8 | (emacs, lisp-compile, compile, compile-always): | ||
| 9 | Quote entities that might contain whitespace. | ||
| 10 | |||
| 1 | 2013-10-22 Dmitry Gutov <dgutov@yandex.ru> | 11 | 2013-10-22 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 12 | ||
| 3 | * indent/ruby.rb: Move two examples to "working" section, add one | 13 | * indent/ruby.rb: Move two examples to "working" section, add one |
diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in index bf8e62f77cd..17e37556a3e 100644 --- a/test/automated/Makefile.in +++ b/test/automated/Makefile.in | |||
| @@ -20,12 +20,14 @@ | |||
| 20 | SHELL = @SHELL@ | 20 | SHELL = @SHELL@ |
| 21 | 21 | ||
| 22 | srcdir = @srcdir@ | 22 | srcdir = @srcdir@ |
| 23 | top_srcdir = @top_srcdir@ | 23 | abs_top_srcdir = @abs_top_srcdir@ |
| 24 | top_builddir = @top_builddir@ | ||
| 24 | abs_top_builddir = @abs_top_builddir@ | 25 | abs_top_builddir = @abs_top_builddir@ |
| 25 | test = $(srcdir) | 26 | test = $(srcdir) |
| 27 | abs_test = $(abs_srcdir) | ||
| 26 | VPATH = $(srcdir) | 28 | VPATH = $(srcdir) |
| 27 | lispsrc = $(top_srcdir)/lisp | 29 | abs_lispsrc = $(abs_top_srcdir)/lisp |
| 28 | lisp = ${abs_top_builddir}/lisp | 30 | lisp = $(top_builddir)/lisp |
| 29 | 31 | ||
| 30 | # You can specify a different executable on the make command line, | 32 | # You can specify a different executable on the make command line, |
| 31 | # e.g. "make EMACS=../src/emacs ...". | 33 | # e.g. "make EMACS=../src/emacs ...". |
| @@ -46,7 +48,7 @@ BYTE_COMPILE_EXTRA_FLAGS = | |||
| 46 | # The example above is just for developers, it should not be used by default. | 48 | # The example above is just for developers, it should not be used by default. |
| 47 | 49 | ||
| 48 | # The actual Emacs command run in the targets below. | 50 | # The actual Emacs command run in the targets below. |
| 49 | emacs = EMACSLOADPATH=$(lispsrc):$(test) LC_ALL=C $(EMACS) $(EMACSOPT) | 51 | emacs = EMACSLOADPATH="$(abs_lispsrc):$(abs_test)" LC_ALL=C "$(EMACS)" $(EMACSOPT) |
| 50 | 52 | ||
| 51 | # Common command to find subdirectories | 53 | # Common command to find subdirectories |
| 52 | setwins=subdirs=`find . -type d -print`; \ | 54 | setwins=subdirs=`find . -type d -print`; \ |
| @@ -79,7 +81,7 @@ doit: | |||
| 79 | .PHONY: lisp-compile compile-main compile compile-always | 81 | .PHONY: lisp-compile compile-main compile compile-always |
| 80 | 82 | ||
| 81 | lisp-compile: | 83 | lisp-compile: |
| 82 | cd $(lisp); $(MAKE) $(MFLAGS) compile EMACS=$(EMACS) | 84 | cd "$(lisp)"; $(MAKE) $(MFLAGS) compile EMACS="$(EMACS)" |
| 83 | 85 | ||
| 84 | # In `compile-main' we could directly do | 86 | # In `compile-main' we could directly do |
| 85 | # ... | xargs $(MAKE) $(MFLAGS) EMACS="$(EMACS)" | 87 | # ... | xargs $(MAKE) $(MFLAGS) EMACS="$(EMACS)" |
| @@ -128,14 +130,14 @@ compile-clean: | |||
| 128 | # Explicitly pass EMACS (sometimes ../src/bootstrap-emacs) to those | 130 | # Explicitly pass EMACS (sometimes ../src/bootstrap-emacs) to those |
| 129 | # sub-makes that run rules that use it, for the sake of some non-GNU makes. | 131 | # sub-makes that run rules that use it, for the sake of some non-GNU makes. |
| 130 | compile: $(LOADDEFS) autoloads compile-first | 132 | compile: $(LOADDEFS) autoloads compile-first |
| 131 | $(MAKE) $(MFLAGS) compile-main EMACS=$(EMACS) | 133 | $(MAKE) $(MFLAGS) compile-main EMACS="$(EMACS)" |
| 132 | 134 | ||
| 133 | # Compile all Lisp files. This is like `compile' but compiles files | 135 | # Compile all Lisp files. This is like `compile' but compiles files |
| 134 | # unconditionally. Some files don't actually get compiled because they | 136 | # unconditionally. Some files don't actually get compiled because they |
| 135 | # set the local variable no-byte-compile. | 137 | # set the local variable no-byte-compile. |
| 136 | compile-always: doit | 138 | compile-always: doit |
| 137 | cd $(test); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc | 139 | cd $(test); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc |
| 138 | $(MAKE) $(MFLAGS) compile EMACS=$(EMACS) | 140 | $(MAKE) $(MFLAGS) compile EMACS="$(EMACS)" |
| 139 | 141 | ||
| 140 | bootstrap-clean: | 142 | bootstrap-clean: |
| 141 | cd $(test); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc | 143 | cd $(test); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc |