aboutsummaryrefslogtreecommitdiffstats
path: root/msdos/mainmake.v2
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2002-03-09 14:09:14 +0000
committerEli Zaretskii <[email protected]>2002-03-09 14:09:14 +0000
commitf72a0a4abbc5a2f54b78ee9936aa651af9c15f1b (patch)
treea77438ff463fafa0cc9ed67ccadb73ab8ae4f8b7 /msdos/mainmake.v2
parent02cca86b7c8525d173bd5b8a1b87d2956b821dd2 (diff)
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
(bootstrap-lisp, bootstrap-src, bootstrap-clean-before) (bootstrap-clean-after): New targets.
Diffstat (limited to 'msdos/mainmake.v2')
-rw-r--r--msdos/mainmake.v228
1 files changed, 28 insertions, 0 deletions
diff --git a/msdos/mainmake.v2 b/msdos/mainmake.v2
index 5904c6e1e2..43c45d6a73 100644
--- a/msdos/mainmake.v2
+++ b/msdos/mainmake.v2
@@ -147,3 +147,31 @@ clean:
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