#\r
# Build emacs\r
#\r
-all: which-sh $(BLD) $(ALL) all-other-dirs-$(MAKETYPE)\r
+all: which-sh $(BLD) $(ALL) maybe-bootstrap all-other-dirs-$(MAKETYPE)\r
\r
all-other-dirs-nmake:\r
cd ..\lib-src\r
### special emacs executable is built from Lisp sources, which is then\r
### used to compile Lisp files. The last step is a "normal" make.\r
\r
+maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE)\r
+\r
+# dummy target to force other targets to be evaluated.\r
+doit:\r
+\r
+maybe-bootstrap-CMD: doit\r
+ @echo.\r
+ @if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing. You should either\r
+ @if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow\r
+ @echo.\r
+ @if not EXIST ..\lisp\abbrev.elc exit -1\r
+\r
+maybe-bootstrap-SH: doit\r
+ @if [ ! -f ../lisp/abbrev.elc ] ; then \\r
+ echo; \\r
+ echo "Essential Lisp files seem to be missing. You should either"; \\r
+ echo "do \`make bootstrap' or create \`lisp/abbrev.elc' somehow."; \\r
+ echo; \\r
+ exit -1; \\r
+ fi\r
+\r
bootstrap: addsection bootstrap-$(MAKETYPE) all\r
\r
bootstrap-nmake:\r