changeset 45811:a834f8a38ad4

(maybe-bootstrap, doit, maybe-bootstrap-CMD) (maybe-bootstrap-SH): New targets. (all): Depend on maybe-bootstrap.
author Jason Rumney <jasonr@gnu.org>
date Thu, 13 Jun 2002 18:40:14 +0000
parents 9941f8a76c75
children dd21f49754a1
files nt/makefile.w32-in
diffstat 1 files changed, 22 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nt/makefile.w32-in	Thu Jun 13 18:39:50 2002 +0000
+++ b/nt/makefile.w32-in	Thu Jun 13 18:40:14 2002 +0000
@@ -69,7 +69,7 @@
 #
 # Build emacs
 #
-all:	which-sh $(BLD) $(ALL) all-other-dirs-$(MAKETYPE)
+all:	which-sh $(BLD) $(ALL) maybe-bootstrap all-other-dirs-$(MAKETYPE)
 
 all-other-dirs-nmake:
 	cd ..\lib-src
@@ -105,6 +105,27 @@
 ### special emacs executable is built from Lisp sources, which is then
 ### used to compile Lisp files.  The last step is a "normal" make.
 
+maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE)
+
+# dummy target to force other targets to be evaluated.
+doit:
+
+maybe-bootstrap-CMD:	doit
+	@echo.
+	@if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing.  You should either
+	@if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow
+	@echo.
+	@if not EXIST ..\lisp\abbrev.elc exit -1
+
+maybe-bootstrap-SH: doit
+	@if [ ! -f ../lisp/abbrev.elc ] ; then \
+	  echo; \
+	  echo "Essential Lisp files seem to be missing.  You should either"; \
+	  echo "do \`make bootstrap' or create \`lisp/abbrev.elc' somehow.";  \
+	  echo; \
+	  exit -1; \
+	fi
+
 bootstrap:	addsection bootstrap-$(MAKETYPE) all
 
 bootstrap-nmake: