comparison lisp/Makefile.in @ 63338:9f31ece48b49

(bootstrap-prepare): Don't use an old loaddefs.el.
author Lute Kamstra <lute@gnu.org>
date Sun, 12 Jun 2005 10:25:31 +0000
parents 2864a2154c8d
children 6fb026ad601f e58cb448e07c a1b34dec1104
comparison
equal deleted inserted replaced
63337:abb85b9b2afa 63338:9f31ece48b49
213 $(lisp)/progmodes/cc-defs.el 213 $(lisp)/progmodes/cc-defs.el
214 $(EMACS) $(EMACSOPT) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el 214 $(EMACS) $(EMACSOPT) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el
215 215
216 # Prepare a bootstrap in the lisp subdirectory. 216 # Prepare a bootstrap in the lisp subdirectory.
217 # 217 #
218 # Build loaddefs.el, because it's not sure it's up-to-date, and if it's not, 218 # Build loaddefs.el to make sure it's up-to-date. If it's not, that
219 # that might lead to errors during the bootstrap because something fails to 219 # might lead to errors during the bootstrap because something fails to
220 # autoload as expected. However, if there is no emacs binary, then we can't 220 # autoload as expected. If there is no emacs binary, then we can't
221 # build autoloads yet, so just make sure there's some loaddefs.el file, as 221 # build autoloads yet. In that case we have to use ldefs-boot.el;
222 # it's necessary for generating the binary (because loaddefs.el is an 222 # bootstrap should always work with ldefs-boot.el. (Because
223 # automatically generated file, we don't want to store it in the source 223 # loaddefs.el is an automatically generated file, we don't want to
224 # repository). 224 # store it in the source repository).
225 225
226 bootstrap-prepare: 226 bootstrap-prepare:
227 if test -x $(EMACS); then \ 227 if test -x $(EMACS); then \
228 $(MAKE) $(MFLAGS) autoloads; \ 228 $(MAKE) $(MFLAGS) autoloads; \
229 else \ 229 else \
230 if test ! -r $(lisp)/loaddefs.el; then \ 230 cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el; \
231 cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el; \
232 fi \
233 fi 231 fi
234 232
235 maintainer-clean: distclean 233 maintainer-clean: distclean
236 cd $(lisp); rm -f *.elc */*.elc $(AUTOGENEL) 234 cd $(lisp); rm -f *.elc */*.elc $(AUTOGENEL)
237 235