diff options
| -rw-r--r-- | lisp/Makefile.in | 30 | ||||
| -rw-r--r-- | lisp/loaddefs-boot.el (renamed from lisp/loaddefs.el) | 1 |
2 files changed, 23 insertions, 8 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 4e7e911fad0..886d82c1eca 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -80,6 +80,7 @@ DONTCOMPILE = \ | |||
| 80 | $(lisp)/language/utf-8-lang.el \ | 80 | $(lisp)/language/utf-8-lang.el \ |
| 81 | $(lisp)/language/georgian.el \ | 81 | $(lisp)/language/georgian.el \ |
| 82 | $(lisp)/loaddefs.el \ | 82 | $(lisp)/loaddefs.el \ |
| 83 | $(lisp)/loaddefs-boot.el \ | ||
| 83 | $(lisp)/loadup.el \ | 84 | $(lisp)/loadup.el \ |
| 84 | $(lisp)/mail/blessmail.el \ | 85 | $(lisp)/mail/blessmail.el \ |
| 85 | $(lisp)/patcomp.el \ | 86 | $(lisp)/patcomp.el \ |
| @@ -186,11 +187,11 @@ update-authors: | |||
| 186 | $(emacs) -f batch-update-authors $(srcdir)/AUTHORS $(srcdir) | 187 | $(emacs) -f batch-update-authors $(srcdir)/AUTHORS $(srcdir) |
| 187 | 188 | ||
| 188 | TAGS: $(lisptagsfiles1) $(lisptagsfiles2) | 189 | TAGS: $(lisptagsfiles1) $(lisptagsfiles2) |
| 189 | els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs.el,,"`; \ | 190 | els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs.*\.el,,"`; \ |
| 190 | ${ETAGS} $$els | 191 | ${ETAGS} $$els |
| 191 | 192 | ||
| 192 | TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) | 193 | TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) |
| 193 | els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs.el,,"`; \ | 194 | els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs.*\.el,,"`; \ |
| 194 | ${ETAGS} -o TAGS-LISP $$els | 195 | ${ETAGS} -o TAGS-LISP $$els |
| 195 | 196 | ||
| 196 | .SUFFIXES: .elc .el | 197 | .SUFFIXES: .elc .el |
| @@ -274,14 +275,27 @@ compile-after-backup: backup-compiled-files compile-always | |||
| 274 | recompile: doit | 275 | recompile: doit |
| 275 | $(EMACS) $(EMACSOPT) -f batch-byte-recompile-directory $(lisp) | 276 | $(EMACS) $(EMACSOPT) -f batch-byte-recompile-directory $(lisp) |
| 276 | 277 | ||
| 277 | # Prepare a bootstrap in the lisp subdirectory. Build loaddefs.el, | 278 | # Prepare a bootstrap in the lisp subdirectory. |
| 278 | # because it's not sure it's up-to-date, and if it's not, that might | 279 | # |
| 279 | # lead to errors during the bootstrap because something fails to | 280 | # Build loaddefs.el, because it's not sure it's up-to-date, and if it's not, |
| 280 | # autoload as expected. Remove compiled Lisp files so that | 281 | # that might lead to errors during the bootstrap because something fails to |
| 281 | # bootstrap-emacs will be built from sources only. | 282 | # autoload as expected. However, if there is no emacs binary, then we can't |
| 283 | # build autoloads yet, so just make sure there's some loaddefs.el file, as | ||
| 284 | # it's necessary for generating the binary (because loaddefs.el is an | ||
| 285 | # automatically generated file, we don't want to store it in the source | ||
| 286 | # repository). | ||
| 287 | # | ||
| 288 | # Remove compiled Lisp files so that bootstrap-emacs will be built from | ||
| 289 | # sources only. | ||
| 282 | 290 | ||
| 283 | bootstrap-clean: | 291 | bootstrap-clean: |
| 284 | if test -x $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi | 292 | if test -x $(EMACS); then \ |
| 293 | $(MAKE) $(MFLAGS) autoloads; \ | ||
| 294 | else \ | ||
| 295 | if ! test -r $(lisp)/loaddefs.el; then \ | ||
| 296 | cp $(lisp)/loaddefs-boot.el $(lisp)/loaddefs.el; \ | ||
| 297 | fi \ | ||
| 298 | fi | ||
| 285 | cd $(lisp); rm -f *.elc */*.elc | 299 | cd $(lisp); rm -f *.elc */*.elc |
| 286 | 300 | ||
| 287 | # Generate/update files for the bootstrap process. | 301 | # Generate/update files for the bootstrap process. |
diff --git a/lisp/loaddefs.el b/lisp/loaddefs-boot.el index a87fa1e5c47..afa863dbba8 100644 --- a/lisp/loaddefs.el +++ b/lisp/loaddefs-boot.el | |||
| @@ -25869,4 +25869,5 @@ Zone-mode does two things: | |||
| 25869 | ;;; no-byte-compile: t | 25869 | ;;; no-byte-compile: t |
| 25870 | ;;; no-update-autoloads: t | 25870 | ;;; no-update-autoloads: t |
| 25871 | ;;; End: | 25871 | ;;; End: |
| 25872 | |||
| 25872 | ;;; loaddefs.el ends here | 25873 | ;;; loaddefs.el ends here |