diff options
| author | Eli Zaretskii | 2005-06-12 11:27:31 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-06-12 11:27:31 +0000 |
| commit | e8dbbf6f02cfdfb571cd5799a0f4364817d49206 (patch) | |
| tree | 452853888dd3e83721fa963f482e1cb7942bfcdd | |
| parent | c52e16385d1a0a662df0df835f12e7e9b2c020a4 (diff) | |
| download | emacs-e8dbbf6f02cfdfb571cd5799a0f4364817d49206.tar.gz emacs-e8dbbf6f02cfdfb571cd5799a0f4364817d49206.zip | |
(bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
as in Makefile.in.
| -rw-r--r-- | lisp/makefile.w32-in | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/lisp/makefile.w32-in b/lisp/makefile.w32-in index 54be26a1675..b4569c26140 100644 --- a/lisp/makefile.w32-in +++ b/lisp/makefile.w32-in | |||
| @@ -286,13 +286,13 @@ recompile: doit | |||
| 286 | 286 | ||
| 287 | # Prepare a bootstrap in the lisp subdirectory. | 287 | # Prepare a bootstrap in the lisp subdirectory. |
| 288 | # | 288 | # |
| 289 | # Build loaddefs.el, because it's not sure it's up-to-date, and if it's not, | 289 | # Build loaddefs.el to make sure it's up-to-date. If it's not, that |
| 290 | # that might lead to errors during the bootstrap because something fails to | 290 | # might lead to errors during the bootstrap because something fails to |
| 291 | # autoload as expected. However, if there is no emacs binary, then we can't | 291 | # autoload as expected. If there is no emacs binary, then we can't |
| 292 | # build autoloads yet, so just make sure there's some loaddefs.el file, as | 292 | # build autoloads yet. In that case we have to use ldefs-boot.el; |
| 293 | # it's necessary for generating the binary (because loaddefs.el is an | 293 | # bootstrap should always work with ldefs-boot.el. (Because |
| 294 | # automatically generated file, we don't want to store it in the source | 294 | # loaddefs.el is an automatically generated file, we don't want to |
| 295 | # repository). | 295 | # store it in the source repository). |
| 296 | # | 296 | # |
| 297 | # Remove compiled Lisp files so that bootstrap-emacs will be built from | 297 | # Remove compiled Lisp files so that bootstrap-emacs will be built from |
| 298 | # sources only. | 298 | # sources only. |
| @@ -302,15 +302,13 @@ bootstrap-clean: bootstrap-clean-$(SHELLTYPE) loaddefs.el | |||
| 302 | 302 | ||
| 303 | bootstrap-clean-CMD: | 303 | bootstrap-clean-CMD: |
| 304 | # if exist $(EMACS) $(MAKE) $(MFLAGS) autoloads | 304 | # if exist $(EMACS) $(MAKE) $(MFLAGS) autoloads |
| 305 | if not exist $(lisp)\loaddefs.el cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el | 305 | cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el |
| 306 | -for %%f in (. $(WINS)) do for %%g in (%%f\*.elc) do @$(DEL) %%g | 306 | -for %%f in (. $(WINS)) do for %%g in (%%f\*.elc) do @$(DEL) %%g |
| 307 | 307 | ||
| 308 | bootstrap-clean-SH: | 308 | bootstrap-clean-SH: |
| 309 | # if test -f $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi | 309 | # if test -f $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi |
| 310 | # -rm -f $(lisp)/*.elc $(lisp)/*/*.elc | 310 | # -rm -f $(lisp)/*.elc $(lisp)/*/*.elc |
| 311 | if ! test -r $(lisp)/loaddefs.el; then \ | 311 | cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el |
| 312 | cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el; \ | ||
| 313 | fi | ||
| 314 | -for dir in . $(WINS); do rm -f $$dir/*.elc; done | 312 | -for dir in . $(WINS); do rm -f $$dir/*.elc; done |
| 315 | 313 | ||
| 316 | # Generate/update files for the bootstrap process. | 314 | # Generate/update files for the bootstrap process. |