changeset 40293:1c73528c9b15

(maybe_bootstrap): New target. (all): Add to prerequisites to bootstrap if abbrev.elc doesn't exist.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 25 Oct 2001 07:13:22 +0000
parents b040e198106d
children c3b8e6d5266f
files Makefile.in
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Thu Oct 25 05:54:03 2001 +0000
+++ b/Makefile.in	Thu Oct 25 07:13:22 2001 +0000
@@ -223,7 +223,7 @@
 COPYDIR = ${srcdir}/etc ${srcdir}/lisp
 COPYDESTS = ${etcdir} ${lispdir}
 
-all: ${SUBDIR} leim
+all: maybe_bootstrap ${SUBDIR} leim
 
 removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g'
 
@@ -663,6 +663,12 @@
 ### used to compile Lisp files.  The last step is a "normal" make.
 
 .PHONY: bootstrap bootstrap-lisp-1 boostrap-src bootstrap-lisp bootstrap-clean
+.PHONY: maybe_bootstrap
+
+maybe_bootstrap:
+	if [ ! -f $(srcdir)/lisp/abbrev.elc ]; then \
+	  $(MAKE) $(MFLAGS) bootstrap; \
+	fi
 
 bootstrap: clean bootstrap-lisp-1 bootstrap-src bootstrap-lisp bootstrap-clean all info