Commit d849789b authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(COMPILE_FIRST): New macro.

(compile-files): Compile files from COMPILE_FIRST first.
parent a0d88270
...@@ -32,6 +32,11 @@ DONTCOMPILE = bindings.el mail/blessmail.el play/bruce.el cus-load.el \ ...@@ -32,6 +32,11 @@ DONTCOMPILE = bindings.el mail/blessmail.el play/bruce.el cus-load.el \
generic-x.el international/latin-8.el international/latin-9.el \ generic-x.el international/latin-8.el international/latin-9.el \
emacs-lisp/cl-specs.el finder-inf.el term/internal.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. # The actual Emacs command run in the targets below.
emacs = $(EMACS) $(EMACSOPT) emacs = $(EMACS) $(EMACSOPT)
...@@ -113,8 +118,9 @@ compile-files: subdirs.el doit ...@@ -113,8 +118,9 @@ compile-files: subdirs.el doit
wd=.; $(setwins); \ wd=.; $(setwins); \
elpat=`echo $$wins | tr ' ' '\012\012' | \ elpat=`echo $$wins | tr ' ' '\012\012' | \
sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \
els=`echo $$elpat $(DONTCOMPILE) | tr ' ' '\012\012' | sort | uniq -u`; \ els=`echo $$elpat $(DONTCOMPILE) $(COMPILE_FIRST) | \
for el in $$els; do \ tr ' ' '\012\012' | sort | uniq -u`; \
for el in $(COMPILE_FIRST) $$els; do \
echo Compiling $$el; \ echo Compiling $$el; \
EMACSLOADPATH=`pwd` $(emacs) -f batch-byte-compile $$el ;\ EMACSLOADPATH=`pwd` $(emacs) -f batch-byte-compile $$el ;\
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment