215 |
|
|
216 |
# Prepare a bootstrap in the lisp subdirectory. |
# Prepare a bootstrap in the lisp subdirectory. |
217 |
# |
# |
218 |
# Build loaddefs.el, because it's not sure it's up-to-date, and if it's not, |
# 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 |
# 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 |
# 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 |
# 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 |
# bootstrap should always work with ldefs-boot.el. (Because |
223 |
# automatically generated file, we don't want to store it in the source |
# loaddefs.el is an automatically generated file, we don't want to |
224 |
# repository). |
# store it in the source repository). |
225 |
|
|
226 |
bootstrap-prepare: |
bootstrap-prepare: |
227 |
if test -x $(EMACS); then \ |
if test -x $(EMACS); then \ |
228 |
$(MAKE) $(MFLAGS) autoloads; \ |
$(MAKE) $(MFLAGS) autoloads; \ |
229 |
else \ |
else \ |
230 |
if test ! -r $(lisp)/loaddefs.el; then \ |
cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el; \ |
|
cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el; \ |
|
|
fi \ |
|
231 |
fi |
fi |
232 |
|
|
233 |
maintainer-clean: distclean |
maintainer-clean: distclean |