comparison lisp/Makefile.in @ 52505:88edef684d4c

Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-44 Add bootstrap mechanism for loaddefs.el
author Miles Bader <miles@gnu.org>
date Mon, 15 Sep 2003 05:36:56 +0000
parents 695cf19ef79e
children 916aeb134a46
comparison
equal deleted inserted replaced
52504:cd1293e6665e 52505:88edef684d4c
78 $(lisp)/language/slovak.el \ 78 $(lisp)/language/slovak.el \
79 $(lisp)/language/thai.el \ 79 $(lisp)/language/thai.el \
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 \
86 $(lisp)/paths.el \ 87 $(lisp)/paths.el \
87 $(lisp)/play/bruce.el \ 88 $(lisp)/play/bruce.el \
184 185
185 update-authors: 186 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
197 198
198 .el.elc: $(lisp)/subdirs.el 199 .el.elc: $(lisp)/subdirs.el
272 # .elc is present. 273 # .elc is present.
273 274
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.
288 302
289 bootstrap: update-subdirs autoloads compile 303 bootstrap: update-subdirs autoloads compile