+# Update MH-E internal autoloads. These are not to be confused with
+# the autoloads for the MH-E entry points, which are already in
+# loaddefs.el.
+MH_E_SRC = $(lisp)/mh-e/mh-acros.el $(lisp)/mh-e/mh-alias.el \
+ $(lisp)/mh-e/mh-comp.el $(lisp)/mh-e/mh-customize.el \
+ $(lisp)/mh-e/mh-e.el $(lisp)/mh-e/mh-funcs.el \
+ $(lisp)/mh-e/mh-mime.el $(lisp)/mh-e/mh-pick.el \
+ $(lisp)/mh-e/mh-print.el $(lisp)/mh-e/mh-inc.el \
+ $(lisp)/mh-e/mh-init.el $(lisp)/mh-e/mh-index.el \
+ $(lisp)/mh-e/mh-identity.el $(lisp)/mh-e/mh-junk.el \
+ $(lisp)/mh-e/mh-seq.el $(lisp)/mh-e/mh-speed.el \
+ $(lisp)/mh-e/mh-utils.el
+
+mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el
+$(lisp)/mh-e/mh-loaddefs.el: $(MH_E_SRC)
+ $(MAKE) $(MFLAGS) pre-mh-loaddefs.el-$(SHELLTYPE)
+ cp pre-mh-loaddefs.el-$(SHELLTYPE) $@
+ rm pre-mh-loaddefs.el-$(SHELLTYPE)
+ $(EMACS) $(EMACSOPT) \
+ -l autoload \
+ --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \
+ --eval "(setq generated-autoload-file \"$(lisp)/mh-e/mh-loaddefs.el\")" \
+ --eval "(setq find-file-suppress-same-file-warnings t)" \
+ --eval "(setq make-backup-files nil)" \
+ -f batch-update-autoloads $(lisp)/mh-e
+
+pre-mh-loaddefs.el-SH:
+ echo ";;; mh-loaddefs.el --- automatically extracted autoloads" > $@
+ echo ";;" >> $@
+ echo ";;; Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc." >> $@
+ echo ";;; Author: Bill Wohler <wohler@newt.com>" >> $@
+ echo ";;; Keywords: mail" >> $@
+ echo ";;; Commentary:" >> $@
+ echo ";;; Change Log:" >> $@
+ echo ";;; Code:" >> $@
+ echo "\f" >> $@
+ echo "(provide 'mh-loaddefs)" >> $@
+ echo ";;; Local Variables:" >> $@
+ echo ";;; version-control: never" >> $@
+ echo ";;; no-byte-compile: t" >> $@
+ echo ";;; no-update-autoloads: t" >> $@
+ echo ";;; End:" >> $@
+ echo ";;; mh-loaddefs.el ends here" >> $@
+
+pre-mh-loaddefs.el-CMD:
+ echo ;;; mh-loaddefs.el --- automatically extracted autoloads> $@
+ echo ;;>> $@
+ echo ;;; Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.>> $@
+ echo ;;; Author: Bill Wohler (wohler@newt.com)>> $@
+ echo ;;; Keywords: mail>> $@
+ echo ;;; Commentary:>> $@
+ echo ;;; Change Log:>> $@
+ echo ;;; Code:>> $@
+ echo.\f>> $@
+ echo (provide 'mh-loaddefs)>> $@
+ echo ;;; Local Variables:>> $@
+ echo ;;; version-control: never>> $@
+ echo ;;; no-byte-compile: t>> $@
+ echo ;;; no-update-autoloads: t>> $@
+ echo ;;; End:>> $@
+ echo ;;; mh-loaddefs.el ends here>> $@
+
+# Prepare a bootstrap in the lisp subdirectory.
+#
+# Build loaddefs.el to make sure it's up-to-date. If it's not, that
+# might lead to errors during the bootstrap because something fails to
+# autoload as expected. If there is no emacs binary, then we can't
+# build autoloads yet. In that case we have to use ldefs-boot.el;
+# bootstrap should always work with ldefs-boot.el. (Because
+# loaddefs.el is an automatically generated file, we don't want to
+# store it in the source repository).
+#
+# Remove compiled Lisp files so that bootstrap-emacs will be built from
+# sources only.