changeset 28306:71e534c8c5cf

(COMPILE_FIRST): New macro. (compile-files): Compile files from COMPILE_FIRST first.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 24 Mar 2000 22:51:40 +0000
parents 860b7c5caf18
children 1d4a11a5f39d
files lisp/Makefile
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/Makefile	Fri Mar 24 22:50:34 2000 +0000
+++ b/lisp/Makefile	Fri Mar 24 22:51:40 2000 +0000
@@ -32,6 +32,11 @@
 	generic-x.el international/latin-8.el international/latin-9.el \
 	emacs-lisp/cl-specs.el finder-inf.el term/internal.el
 
+# Files to compile before others during a bootstrap.  This is done
+# to speed up the bootstrap process.
+
+COMPILE_FIRST = emacs-lisp/bytecomp.el emacs-lisp/byte-opt.el subr.el
+
 # The actual Emacs command run in the targets below.
 
 emacs = $(EMACS) $(EMACSOPT)
@@ -113,8 +118,9 @@
 	wd=.; $(setwins);					\
 	elpat=`echo $$wins | tr ' 	' '\012\012' | 	\
 		sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`;	\
-	els=`echo $$elpat $(DONTCOMPILE) | tr '	 ' '\012\012' | sort | uniq -u`; \
-	for el in $$els; do \
+	els=`echo $$elpat $(DONTCOMPILE) $(COMPILE_FIRST) | \
+		tr '	 ' '\012\012' | sort | uniq -u`; \
+	for el in $(COMPILE_FIRST) $$els; do \
 	  echo Compiling $$el; \
 	  EMACSLOADPATH=`pwd` $(emacs) -f batch-byte-compile $$el ;\
 	done