+
+
+/* Bootstrapping. */
+
+bootstrap: bootstrap-emacs
+
+/* Build a temacs with a sufficiently large PURESIZE to load the
+ Lisp files from loadup.el in source form. */
+
+bootstrap-temacs:
+ LC_ALL=C $(MAKE) $(MFLAGS) temacs ALL_CFLAGS="$(ALL_CFLAGS) -DPURESIZE=5000000 -I../src"
+
+/* Build a DOC file. */
+
+bootstrap-doc: ${libsrc}make-docfile
+ -rm -f ${etc}DOC
+ els=`echo ${shortlisp} ${SOME_MACHINE_LISP} \
+ | sed -e "s/\\.elc/.el/g"`; \
+ ${libsrc}make-docfile -d ${srcdir} $$els ${obj} > ${etc}DOC
+
+/* Dump an Emacs executable named bootstrap-emacs containing the
+ files from loadup.el in source form. */
+
+bootstrap-emacs: bootstrap-temacs bootstrap-doc
+#ifdef CANNOT_DUMP
+ ln temacs bootstrap-emacs
+#else
+#ifdef HAVE_SHM
+ ./temacs -nl -batch -l loadup bootstrap
+#else /* ! defined (HAVE_SHM) */
+ ./temacs --batch --load loadup bootstrap
+#endif /* ! defined (HAVE_SHM) */
+#endif /* ! defined (CANNOT_DUMP) */
+ mv -f emacs bootstrap-emacs
+ rm -f temacs
+