1 |
# Maintenance productions for the Lisp directory |
# Maintenance productions for the Lisp directory |
2 |
# Copyright (C) 2000, 2001 Free Software Foundation, Inc. |
# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
# This file is part of GNU Emacs. |
# This file is part of GNU Emacs. |
5 |
|
|
113 |
# bootstrapping. |
# bootstrapping. |
114 |
|
|
115 |
COMPILE_FIRST = \ |
COMPILE_FIRST = \ |
116 |
|
$(lisp)/emacs-lisp/macroexp.el \ |
117 |
$(lisp)/emacs-lisp/byte-opt.el \ |
$(lisp)/emacs-lisp/byte-opt.el \ |
118 |
$(lisp)/emacs-lisp/bytecomp.el \ |
$(lisp)/emacs-lisp/bytecomp.el \ |
119 |
$(lisp)/subr.el \ |
$(lisp)/subr.el \ |
217 |
|
|
218 |
compile: subdirs.el doit |
compile: subdirs.el doit |
219 |
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ |
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ |
220 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins); \ |
221 |
elpat=`echo $$wins | tr ' ' '\012\012' | \ |
elpat=`echo $$wins | tr ' ' '\012\012' | \ |
222 |
sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
223 |
els=`echo $$elpat $(DONTCOMPILE) $(DONTCOMPILE) $(COMPILE_FIRST) | \ |
els=`echo $$elpat $(DONTCOMPILE) $(DONTCOMPILE) $(COMPILE_FIRST) | \ |
224 |
tr ' ' '\012\012' | sort | uniq -u`; \ |
tr ' ' '\012\012' | sort | uniq -u`; \ |
225 |
for el in $(COMPILE_FIRST) $$els; do \ |
for el in $(COMPILE_FIRST) $$els; do \ |
226 |
if test -f $$el; \ |
if test -f $$el; \ |
227 |
then \ |
then \ |
228 |
echo Compiling $$el; \ |
echo Compiling $$el; \ |
229 |
$(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \ |
case "$$el" in \ |
230 |
fi \ |
*/macroexp.el) \ |
231 |
|
$(emacs) --eval '(setq max-lisp-eval-depth 450)' \ |
232 |
|
-f batch-byte-compile-if-not-done $$el || exit 1;; \ |
233 |
|
*) \ |
234 |
|
$(emacs) -f batch-byte-compile-if-not-done $$el || exit 1;; \ |
235 |
|
esac; \ |
236 |
|
fi \ |
237 |
done |
done |
238 |
|
|
239 |
# Compile all Lisp files, except those from DONTCOMPILE. This |
# Compile all Lisp files, except those from DONTCOMPILE. This |