1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-44

Add bootstrap mechanism for loaddefs.el
This commit is contained in:
Miles Bader 2003-09-15 05:36:56 +00:00
parent 205f1dde3c
commit eb7b668e8e
2 changed files with 23 additions and 8 deletions

View File

@ -80,6 +80,7 @@ DONTCOMPILE = \
$(lisp)/language/utf-8-lang.el \
$(lisp)/language/georgian.el \
$(lisp)/loaddefs.el \
$(lisp)/loaddefs-boot.el \
$(lisp)/loadup.el \
$(lisp)/mail/blessmail.el \
$(lisp)/patcomp.el \
@ -186,11 +187,11 @@ update-authors:
$(emacs) -f batch-update-authors $(srcdir)/AUTHORS $(srcdir)
TAGS: $(lisptagsfiles1) $(lisptagsfiles2)
els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs.el,,"`; \
els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs.*\.el,,"`; \
${ETAGS} $$els
TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2)
els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs.el,,"`; \
els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs.*\.el,,"`; \
${ETAGS} -o TAGS-LISP $$els
.SUFFIXES: .elc .el
@ -274,14 +275,27 @@ compile-after-backup: backup-compiled-files compile-always
recompile: doit
$(EMACS) $(EMACSOPT) -f batch-byte-recompile-directory $(lisp)
# 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. Remove compiled Lisp files so that
# bootstrap-emacs will be built from sources only.
# 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).
#
# Remove compiled Lisp files so that bootstrap-emacs will be built from
# sources only.
bootstrap-clean:
if test -x $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi
if test -x $(EMACS); then \
$(MAKE) $(MFLAGS) autoloads; \
else \
if ! test -r $(lisp)/loaddefs.el; then \
cp $(lisp)/loaddefs-boot.el $(lisp)/loaddefs.el; \
fi \
fi
cd $(lisp); rm -f *.elc */*.elc
# Generate/update files for the bootstrap process.

View File

@ -25869,4 +25869,5 @@ Zone-mode does two things:
;;; no-byte-compile: t
;;; no-update-autoloads: t
;;; End:
;;; loaddefs.el ends here