diff options
| author | Gerd Moellmann | 2000-03-24 22:51:40 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-24 22:51:40 +0000 |
| commit | d849789b50fda5d431b156ab1ed672e6d60dc116 (patch) | |
| tree | 93f4959f6aa628811ec3b1046d0ab20847c66d1e | |
| parent | a0d88270979bdc599b189ccb6675d51c0beac9ed (diff) | |
| download | emacs-d849789b50fda5d431b156ab1ed672e6d60dc116.tar.gz emacs-d849789b50fda5d431b156ab1ed672e6d60dc116.zip | |
(COMPILE_FIRST): New macro.
(compile-files): Compile files from COMPILE_FIRST first.
| -rw-r--r-- | lisp/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/Makefile b/lisp/Makefile index 98509cfc650..b51efe9155c 100644 --- a/lisp/Makefile +++ b/lisp/Makefile | |||
| @@ -32,6 +32,11 @@ DONTCOMPILE = bindings.el mail/blessmail.el play/bruce.el cus-load.el \ | |||
| 32 | generic-x.el international/latin-8.el international/latin-9.el \ | 32 | generic-x.el international/latin-8.el international/latin-9.el \ |
| 33 | emacs-lisp/cl-specs.el finder-inf.el term/internal.el | 33 | emacs-lisp/cl-specs.el finder-inf.el term/internal.el |
| 34 | 34 | ||
| 35 | # Files to compile before others during a bootstrap. This is done | ||
| 36 | # to speed up the bootstrap process. | ||
| 37 | |||
| 38 | COMPILE_FIRST = emacs-lisp/bytecomp.el emacs-lisp/byte-opt.el subr.el | ||
| 39 | |||
| 35 | # The actual Emacs command run in the targets below. | 40 | # The actual Emacs command run in the targets below. |
| 36 | 41 | ||
| 37 | emacs = $(EMACS) $(EMACSOPT) | 42 | emacs = $(EMACS) $(EMACSOPT) |
| @@ -113,8 +118,9 @@ compile-files: subdirs.el doit | |||
| 113 | wd=.; $(setwins); \ | 118 | wd=.; $(setwins); \ |
| 114 | elpat=`echo $$wins | tr ' ' '\012\012' | \ | 119 | elpat=`echo $$wins | tr ' ' '\012\012' | \ |
| 115 | sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ | 120 | sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
| 116 | els=`echo $$elpat $(DONTCOMPILE) | tr ' ' '\012\012' | sort | uniq -u`; \ | 121 | els=`echo $$elpat $(DONTCOMPILE) $(COMPILE_FIRST) | \ |
| 117 | for el in $$els; do \ | 122 | tr ' ' '\012\012' | sort | uniq -u`; \ |
| 123 | for el in $(COMPILE_FIRST) $$els; do \ | ||
| 118 | echo Compiling $$el; \ | 124 | echo Compiling $$el; \ |
| 119 | EMACSLOADPATH=`pwd` $(emacs) -f batch-byte-compile $$el ;\ | 125 | EMACSLOADPATH=`pwd` $(emacs) -f batch-byte-compile $$el ;\ |
| 120 | done | 126 | done |