]> code.delx.au - gnu-emacs/commitdiff
(maybe_bootstrap): New target.
authorGerd Moellmann <gerd@gnu.org>
Thu, 25 Oct 2001 07:13:22 +0000 (07:13 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 25 Oct 2001 07:13:22 +0000 (07:13 +0000)
(all): Add to prerequisites to bootstrap if abbrev.elc doesn't
exist.

Makefile.in

index 389e08e37ca5f00173290f9e2e2e1f6f6a6fb28e..6a8dae9fecc277421ce9a596460440aa1f19262b 100644 (file)
@@ -223,7 +223,7 @@ SUBDIR_MAKEFILES = lib-src/Makefile man/Makefile src/Makefile oldXMenu/Makefile
 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 @@ dvi:
 ### 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