mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 13:57:36 +00:00
(bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
as in Makefile.in.
This commit is contained in:
parent
c52e16385d
commit
e8dbbf6f02
1 changed files with 9 additions and 11 deletions
|
|
@ -286,13 +286,13 @@ recompile: doit
|
|||
|
||||
# Prepare a bootstrap in the lisp subdirectory.
|
||||
#
|
||||
# Build loaddefs.el, because it's not sure it's up-to-date, and if it's not,
|
||||
# that might lead to errors during the bootstrap because something fails to
|
||||
# autoload as expected. However, if there is no emacs binary, then we can't
|
||||
# build autoloads yet, so just make sure there's some loaddefs.el file, as
|
||||
# it's necessary for generating the binary (because loaddefs.el is an
|
||||
# automatically generated file, we don't want to store it in the source
|
||||
# repository).
|
||||
# Build loaddefs.el to make sure it's up-to-date. If it's not, that
|
||||
# might lead to errors during the bootstrap because something fails to
|
||||
# autoload as expected. If there is no emacs binary, then we can't
|
||||
# build autoloads yet. In that case we have to use ldefs-boot.el;
|
||||
# bootstrap should always work with ldefs-boot.el. (Because
|
||||
# loaddefs.el is an automatically generated file, we don't want to
|
||||
# store it in the source repository).
|
||||
#
|
||||
# Remove compiled Lisp files so that bootstrap-emacs will be built from
|
||||
# sources only.
|
||||
|
|
@ -302,15 +302,13 @@ bootstrap-clean: bootstrap-clean-$(SHELLTYPE) loaddefs.el
|
|||
|
||||
bootstrap-clean-CMD:
|
||||
# if exist $(EMACS) $(MAKE) $(MFLAGS) autoloads
|
||||
if not exist $(lisp)\loaddefs.el cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el
|
||||
cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el
|
||||
-for %%f in (. $(WINS)) do for %%g in (%%f\*.elc) do @$(DEL) %%g
|
||||
|
||||
bootstrap-clean-SH:
|
||||
# if test -f $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi
|
||||
# -rm -f $(lisp)/*.elc $(lisp)/*/*.elc
|
||||
if ! test -r $(lisp)/loaddefs.el; then \
|
||||
cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el; \
|
||||
fi
|
||||
cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el
|
||||
-for dir in . $(WINS); do rm -f $$dir/*.elc; done
|
||||
|
||||
# Generate/update files for the bootstrap process.
|
||||
|
|
|
|||
Loading…
Reference in a new issue