# HG changeset patch # User Eli Zaretskii # Date 1015682954 0 # Node ID 1548aa2b7c55d8f368b21f513dc0dd200da25f6d # Parent b1abfedc2e1df0aea7f54ddd006cda95b15b082c (maybe_bootstrap, bootstrap, bootstrap-lisp-1) (bootstrap-lisp, bootstrap-src, bootstrap-clean-before) (bootstrap-clean-after): New targets. diff -r b1abfedc2e1d -r 1548aa2b7c55 msdos/mainmake.v2 --- a/msdos/mainmake.v2 Sat Mar 09 10:20:18 2002 +0000 +++ b/msdos/mainmake.v2 Sat Mar 09 14:09:14 2002 +0000 @@ -147,3 +147,31 @@ cd leim if exist Makefile redir $(MAKE) clean cd .. + +.PHONY: bootstrap bootstrap-lisp-1 boostrap-src bootstrap-lisp bootstrap-clean +.PHONY: maybe_bootstrap + +maybe_bootstrap: + @if not exist lisp\abbrevs.elc djecho \ + "Some *.elc files are missing. You should do a `make bootstrap'." + @if not exist lisp\abbrevs.elc fail-this-make + +bootstrap: bootstrap-clean-before bootstrap-lisp-1 bootstrap-src bootstrap-lisp bootstrap-clean-after all info + +bootstrap-lisp-1: + cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean + +bootstrap-lisp: + cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/b-emacs.exe + +bootstrap-src: + cd src; $(MAKE) $(MFLAGS) bootstrap + +### Used for `bootstrap' to avoid deleting existing dumped Emacs executables. +bootstrap-clean-before: FRC + cd src; $(MAKE) $(MFLAGS) mostlyclean + cd lib-src; $(MAKE) $(MFLAGS) clean + cd leim; $(MAKE) $(MFLAGS) clean + +bootstrap-clean-after: + cd src; $(MAKE) $(MFLAGS) mostlyclean