X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/55498a0fe4713d9d6e6737bd4bd293ac4d8c4236..7818df11b85d4829b61f6d967aa421621985b18a:/Makefile.in diff --git a/Makefile.in b/Makefile.in index 5cf2cb1200..984dcea7cc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -342,8 +342,16 @@ msys_sed_sh_escape=sed -e 's/[];$$*.^[]/\\\\&/g' # nt/epaths.nt as the template. # Use the value of ${locallisppath} supplied by `configure', # to support the --enable-locallisppath argument. +# +# When building with MinGW inside the MSYS tree, 'pwd' produces directories +# relative to the root of the MSYS tree, e.g. '/home/user/foo' instead of +# '/d/MSYS/home/user/foo'. If such a value of srcdir is written to +# src/epaths.h, that causes temacs to fail, because, being a MinGW +# program that knows nothing of MSYS root substitution, it cannot find +# the data directory. "pwd -W" produces Windows-style 'd:/foo/bar' +# absolute directory names, so we use it here to countermand that lossage. epaths-force-w32: FRC - @(w32srcdir=`echo "${abs_srcdir}" | ${msys_to_w32}` ; \ + @(w32srcdir=`cd "${srcdir}"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,' | ${msys_to_w32}` ; \ prefixpattern=`echo '${prefix}' | ${msys_to_w32} | ${msys_sed_sh_escape}` ; \ locallisppath=`echo '${locallisppath}' | ${msys_lisppath_to_w32} | ${msys_prefix_subst}` ; \ sed < ${srcdir}/nt/epaths.nt > epaths.h.$$$$ \ @@ -936,7 +944,7 @@ extraclean: TAGS tags: lib lib-src src cd src; $(MAKE) $(MFLAGS) tags -check: +check: all @if test ! -d test/automated; then \ echo "You do not seem to have the test/ directory."; \ echo "Maybe you are using a release tarfile, rather than a repository checkout."; \ @@ -1065,11 +1073,11 @@ check-info-dir: info # Bootstrapping does the following: # * Remove files to start from a bootstrap-clean slate. -# * Run autogen.sh, falling back on copy_autogen if autogen.sh fails. +# * Run autogen.sh. # * Rebuild Makefile, to update the build procedure itself. # * Do the actual build. bootstrap: bootstrap-clean FRC - cd $(srcdir) && { ./autogen.sh || autogen/copy_autogen; } + cd $(srcdir) && ./autogen.sh $(MAKE) $(MFLAGS) MAKEFILE_NAME=force-Makefile force-Makefile $(MAKE) $(MFLAGS) info all