aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-02-01 04:13:14 +0000
committerRichard M. Stallman2002-02-01 04:13:14 +0000
commit61b92c330e136eee127449d1fc5e68680ca38b87 (patch)
tree54bc9df949c294bdbf3df0b0de93058738302905
parent024ab5b50476c6bf0d3bd1ddf1cd9d0aef2cdda6 (diff)
downloademacs-61b92c330e136eee127449d1fc5e68680ca38b87.tar.gz
emacs-61b92c330e136eee127449d1fc5e68680ca38b87.zip
(compile): New target.
(compile-always): Renamed from compile-files. (compile-after-backup): Renamed from compile. (bootstrap): Depend on compile-always, not compile-files.
-rw-r--r--lisp/Makefile.in26
1 files changed, 21 insertions, 5 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 2c1e29c64b0..2ec3b6d8137 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -202,8 +202,10 @@ TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2)
202$(DONTCOMPILE:.el=.elc): 202$(DONTCOMPILE:.el=.elc):
203 -rm -f $@ 203 -rm -f $@
204 204
205# Compile all Lisp files, except those from DONTCOMPILE. This 205# Compile all Lisp files, except those from DONTCOMPILE,
206# compiles files unconditionally. All .elc files are made writable 206# but don't recompile those that are up to date.
207
208# All .elc files are made writable
207# before compilation in case we checked out read-only (CVS option -r). 209# before compilation in case we checked out read-only (CVS option -r).
208# Files MUST be compiled one by one. If we compile several files in a 210# Files MUST be compiled one by one. If we compile several files in a
209# row we can't make sure that the compilation environment is clean. 211# row we can't make sure that the compilation environment is clean.
@@ -211,7 +213,21 @@ $(DONTCOMPILE:.el=.elc):
211# current directory and its subdirectories, to make sure require's and 213# current directory and its subdirectories, to make sure require's and
212# load's in the files being compiled find the right files. 214# load's in the files being compiled find the right files.
213 215
214compile-files: subdirs.el doit 216compile: subdirs.el doit
217 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \
218 wd=$(lisp); $(setwins); \
219 elpat=`echo $$wins | tr ' ' '\012\012' | \
220 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \
221 els=`echo $$elpat $(DONTCOMPILE) $(COMPILE_FIRST) | \
222 tr ' ' '\012\012' | sort | uniq -u`; \
223 for el in $(COMPILE_FIRST) $$els; do \
224 echo Compiling $$el; \
225 $(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \
226 done
227
228# Compile all Lisp files, except those from DONTCOMPILE. This
229# is like `compile' but compiles files unconditionally.
230compile-always: subdirs.el doit
215 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ 231 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \
216 wd=$(lisp); $(setwins); \ 232 wd=$(lisp); $(setwins); \
217 elpat=`echo $$wins | tr ' ' '\012\012' | \ 233 elpat=`echo $$wins | tr ' ' '\012\012' | \
@@ -238,7 +254,7 @@ backup-compiled-files:
238 254
239# Compile Lisp files, but save old compiled files first. 255# Compile Lisp files, but save old compiled files first.
240 256
241compile: backup-compiled-files compile-files 257compile-after-backup: backup-compiled-files compile-always
242 258
243# Recompile all Lisp files which are newer than their .elc files. 259# Recompile all Lisp files which are newer than their .elc files.
244# Note that this doesn't create .elc files. It only recompiles if an 260# Note that this doesn't create .elc files. It only recompiles if an
@@ -259,7 +275,7 @@ bootstrap-clean:
259 275
260# Generate/update files for the bootstrap process. 276# Generate/update files for the bootstrap process.
261 277
262bootstrap: autoloads compile-files custom-deps 278bootstrap: autoloads compile-always custom-deps
263 279
264distclean: 280distclean:
265 -rm -f ./Makefile 281 -rm -f ./Makefile