comparison lisp/makefile.w32-in @ 63341:dccd42ff9e1a

(bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el, as in Makefile.in.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 12 Jun 2005 11:27:31 +0000
parents 020a384cb96d
children 8ecb3fd4aded a1b34dec1104
comparison
equal deleted inserted replaced
63340:1cd9a44aa129 63341:dccd42ff9e1a
284 recompile: doit 284 recompile: doit
285 $(emacs) -f batch-byte-recompile-directory $(lisp) 285 $(emacs) -f batch-byte-recompile-directory $(lisp)
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.
299 299
300 # Need separate version for sh and native cmd.exe 300 # Need separate version for sh and native cmd.exe
301 bootstrap-clean: bootstrap-clean-$(SHELLTYPE) loaddefs.el 301 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.
317 315
318 bootstrap: update-subdirs autoloads compile finder-data custom-deps 316 bootstrap: update-subdirs autoloads compile finder-data custom-deps