diff options
| author | Gerd Moellmann | 2000-03-24 12:14:43 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-24 12:14:43 +0000 |
| commit | 03adf1eea7681237b5b0673444d79ed71bead89b (patch) | |
| tree | 411f576c856179d88cf70e257dc7c6bc4a0863aa | |
| parent | 9f7c6da9c5bfd16c1b52a25c39731edb13fecf6c (diff) | |
| download | emacs-03adf1eea7681237b5b0673444d79ed71bead89b.tar.gz emacs-03adf1eea7681237b5b0673444d79ed71bead89b.zip | |
(bootstrap-clean): If $(emacs) exists, build
loaddefs.el first. A loaddefs.el that's not up-to-date might
cause a bootstrap failure because things don't autoload as
expected.
| -rw-r--r-- | lisp/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/Makefile b/lisp/Makefile index 650099956d7..98509cfc650 100644 --- a/lisp/Makefile +++ b/lisp/Makefile | |||
| @@ -137,10 +137,14 @@ compile: backup-compiled-files compile-files | |||
| 137 | recompile: doit | 137 | recompile: doit |
| 138 | $(emacs) -f batch-byte-recompile-directory . | 138 | $(emacs) -f batch-byte-recompile-directory . |
| 139 | 139 | ||
| 140 | # Remove files for a bootstrap. Compiled Lisp files must be removed | 140 | # Prepare a bootstrap in the lisp subdirectory. Build loaddefs.el, |
| 141 | # because otherwise `bootstrap-emacs' would not be built from sources. | 141 | # because it's not sure it's up-to-date, and if it's not, that might |
| 142 | # lead to errors during the bootstrap because something fails to | ||
| 143 | # autoload as expected. Remove compiled Lisp files so that | ||
| 144 | # bootstrap-emacs will be built from sources only. | ||
| 142 | 145 | ||
| 143 | bootstrap-clean: | 146 | bootstrap-clean: |
| 147 | if test -f $(emacs); then $(MAKE) $(MFLAGS) autoloads; fi | ||
| 144 | -rm -f *.elc */*.elc | 148 | -rm -f *.elc */*.elc |
| 145 | 149 | ||
| 146 | # Generate/update files for the bootstrap process. | 150 | # Generate/update files for the bootstrap process. |