]> git.eshelyaron.com Git - emacs.git/commitdiff
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
authorJason Rumney <jasonr@gnu.org>
Thu, 13 Jun 2002 18:40:14 +0000 (18:40 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 13 Jun 2002 18:40:14 +0000 (18:40 +0000)
(maybe-bootstrap-SH): New targets.
(all): Depend on maybe-bootstrap.

nt/makefile.w32-in

index a74cfcc7efda7767731863c7edaced85a1dd51f1..10f6d6bebd2bf3d2e2b226eca2c4657f674c8349 100644 (file)
@@ -69,7 +69,7 @@ which-sh:
 #\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
@@ -105,6 +105,27 @@ recompile-gmake:
 ### 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