-maybe_bootstrap:
- @if not exist lisp\abbrev.elc djecho \
- "Some *.elc files are missing. You should do a `make bootstrap'."
- @if not exist lisp\abbrev.elc redir -e /dev/null -oe redir fail-this-make.exe
-
-bootstrap: bootstrap-clean-before bootstrap-lisp-1 bootstrap-src bootstrap-lisp bootstrap-clean-after all info
- cd lisp; $(MAKE) $(MFLAGS) bootstrap-after; cd ..
-
-bootfast: bootstrap-clean-before bootstrap-src bootstrap-lisp bootstrap-clean-after all info
- cd lisp; $(MAKE) $(MFLAGS) bootstrap-after; cd ..
-
-bootstrap-lisp-1:
- cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean; cd ..
-
-bootstrap-lisp:
- cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=${top_srcdir}/src/b-emacs.exe lisp=${top_srcdir}/lisp; cd ..
-
-bootstrap-src:
- cd src; $(MAKE) $(MFLAGS) bootstrap; cd ..
-
-### Used for `bootstrap' to avoid deleting existing dumped Emacs executables.
-bootstrap-clean-before: FRC
- cd src; $(MAKE) $(MFLAGS) mostlyclean; cd ..
- cd lib-src; $(MAKE) $(MFLAGS) clean; cd ..
- -cd man; $(MAKE) $(MFLAGS) clean; cd ..
- -cd lispref; $(MAKE) $(MFLAGS) clean; cd ..
- -cd lispintro; $(MAKE) $(MFLAGS) clean; cd ..
- cd leim; if exist Makefile redir $(MAKE) $(MFLAGS) clean; cd ..
-
-bootstrap-clean-after:
- cd src; $(MAKE) $(MFLAGS) mostlyclean; cd ..
+bootstrap-clean: FRC
+ cd lib
+ -$(MAKE) $(MFLAGS) maintainer-clean
+ cd ..
+ cd src
+ $(MAKE) $(MFLAGS) $@
+ cd ..
+ cd lib-src
+ $(MAKE) $(MFLAGS) maintainer-clean
+ cd ..
+ cd doc
+ cd emacs
+ -$(MAKE) $(MFLAGS) maintainer-clean
+ cd ../misc
+ -$(MAKE) $(MFLAGS) maintainer-clean
+ cd ../lispref
+ -$(MAKE) $(MFLAGS) maintainer-clean
+ cd ../lispintro
+ -$(MAKE) $(MFLAGS) maintainer-clean
+ cd ..
+ cd ..
+ cd leim
+ $(MAKE) $(MFLAGS) maintainer-clean
+ cd ..
+ cd lisp
+ $(MAKE) $(MFLAGS) bootstrap-clean
+ cd ..
+ ${top_bootclean}