aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes2002-07-23 00:06:22 +0000
committerAndrew Innes2002-07-23 00:06:22 +0000
commit9b006cb2585bce97df68ba58f980928cd433c9bf (patch)
tree31893fd484473ff9d4d4c55d6a295f38fc2215fd
parent2a9ca093f6857ae200d63c5cc61d56a8241955df (diff)
downloademacs-9b006cb2585bce97df68ba58f980928cd433c9bf.tar.gz
emacs-9b006cb2585bce97df68ba58f980928cd433c9bf.zip
(DONTCOMPILE): Remove cus-start.el.
(DONTCOMPILE): Add various language files. (DONTCOMPILE): Remove term/xterm.el. (finder-inf.el): Remove. (update-authors): New target. (TAGS-LISP): Remove $(lispsource). (compile-always): Renamed from `compile-files'. (compile): New target, adapted from `compile-files'. (compile-calc): New target. (recompile): Change `.' to $(lisp). (bootstrap): Add update-subdirs and finder-data to dependencies; change compile-files to compile.
-rw-r--r--lisp/ChangeLog15
-rw-r--r--lisp/makefile.w32-in96
2 files changed, 93 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d7ad240d06f..e99afd4e319 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,18 @@
12002-07-23 Andrew Innes <andrewi@gnu.org>
2
3 * makefile.w32-in (DONTCOMPILE): Remove cus-start.el.
4 (DONTCOMPILE): Add various language files.
5 (DONTCOMPILE): Remove term/xterm.el.
6 (finder-inf.el): Remove.
7 (update-authors): New target.
8 (TAGS-LISP): Remove $(lispsource).
9 (compile-always): Renamed from `compile-files'.
10 (compile): New target, adapted from `compile-files'.
11 (compile-calc): New target.
12 (recompile): Change `.' to $(lisp).
13 (bootstrap): Add update-subdirs and finder-data
14 to dependencies; change compile-files to compile.
15
12002-07-22 Andre Spiegel <spiegel@gnu.org> 162002-07-22 Andre Spiegel <spiegel@gnu.org>
2 17
3 * vc.el (vc-next-action-on-file): Preserve find-file-literally. 18 * vc.el (vc-next-action-on-file): Preserve find-file-literally.
diff --git a/lisp/makefile.w32-in b/lisp/makefile.w32-in
index db22753e577..2f9a5e1ae0c 100644
--- a/lisp/makefile.w32-in
+++ b/lisp/makefile.w32-in
@@ -27,6 +27,7 @@ SQUOTE='
27# ' 27# '
28 28
29lisp = $(CURDIR) 29lisp = $(CURDIR)
30srcdir = $(CURDIR)/..
30 31
31# You can specify a different executable on the make command line, 32# You can specify a different executable on the make command line,
32# e.g. "make EMACS=../src/emacs ...". 33# e.g. "make EMACS=../src/emacs ...".
@@ -45,13 +46,15 @@ lisptagsfiles1 = $(lisp)/*.el
45lisptagsfiles2 = $(lisp)/*/*.el 46lisptagsfiles2 = $(lisp)/*/*.el
46ETAGS = "../lib-src/$(BLD)/etags" 47ETAGS = "../lib-src/$(BLD)/etags"
47 48
48# Files which should not be compiled. 49# Files which should not be compiled. If you change the name `DONTCOMPILE'
50# to something different, you'll have to change make-dist as well, and
51# modify the lists in $lisp and $shortlisp on src/Makefile.in.
52#
49# - emacs-lisp/cl-specs.el: only contains `def-edebug-spec's so there's 53# - emacs-lisp/cl-specs.el: only contains `def-edebug-spec's so there's
50# no point compiling it, although it doesn't hurt. 54# no point compiling it, although it doesn't hurt.
51 55
52DONTCOMPILE = \ 56DONTCOMPILE = \
53 $(lisp)/cus-load.el \ 57 $(lisp)/cus-load.el \
54 $(lisp)/cus-start.el \
55 $(lisp)/emacs-lisp/cl-specs.el \ 58 $(lisp)/emacs-lisp/cl-specs.el \
56 $(lisp)/eshell/esh-maint.el \ 59 $(lisp)/eshell/esh-maint.el \
57 $(lisp)/eshell/esh-groups.el \ 60 $(lisp)/eshell/esh-groups.el \
@@ -67,6 +70,20 @@ DONTCOMPILE = \
67 $(lisp)/international/latin-8.el \ 70 $(lisp)/international/latin-8.el \
68 $(lisp)/international/latin-9.el \ 71 $(lisp)/international/latin-9.el \
69 $(lisp)/international/mule-conf.el \ 72 $(lisp)/international/mule-conf.el \
73 $(lisp)/language/czech.el \
74 $(lisp)/language/devanagari.el \
75 $(lisp)/language/english.el \
76 $(lisp)/language/greek.el \
77 $(lisp)/language/hebrew.el \
78 $(lisp)/language/japanese.el \
79 $(lisp)/language/korean.el \
80 $(lisp)/language/lao.el \
81 $(lisp)/language/misc-lang.el \
82 $(lisp)/language/romanian.el \
83 $(lisp)/language/slovak.el \
84 $(lisp)/language/thai.el \
85 $(lisp)/language/utf-8-lang.el \
86 $(lisp)/language/georgian.el \
70 $(lisp)/loaddefs.el \ 87 $(lisp)/loaddefs.el \
71 $(lisp)/loadup.el \ 88 $(lisp)/loadup.el \
72 $(lisp)/mail/blessmail.el \ 89 $(lisp)/mail/blessmail.el \
@@ -94,7 +111,6 @@ DONTCOMPILE = \
94 $(lisp)/term/vt400.el \ 111 $(lisp)/term/vt400.el \
95 $(lisp)/term/vt420.el \ 112 $(lisp)/term/vt420.el \
96 $(lisp)/term/wyse50.el \ 113 $(lisp)/term/wyse50.el \
97 $(lisp)/term/xterm.el \
98 $(lisp)/version.el 114 $(lisp)/version.el
99 115
100# Files to compile before others during a bootstrap. This is done to 116# Files to compile before others during a bootstrap. This is done to
@@ -148,10 +164,7 @@ custom-deps: cus-load.el doit
148 @echo Directories: $(WINS) 164 @echo Directories: $(WINS)
149 -$(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hooks nil)$(ARGQUOTE) -f custom-make-dependencies $(lisp) $(WINS) 165 -$(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hooks nil)$(ARGQUOTE) -f custom-make-dependencies $(lisp) $(WINS)
150 166
151finder-inf.el: 167finder-data: doit
152 echo (provide $(SQUOTE)finder-inf)>> $@
153
154finder-data: finder-inf.el doit
155 @echo Directories: $(WINS) 168 @echo Directories: $(WINS)
156 $(emacs) -l finder -f finder-compile-keywords-make-dist $(lisp) $(WINS) 169 $(emacs) -l finder -f finder-compile-keywords-make-dist $(lisp) $(WINS)
157 170
@@ -196,11 +209,16 @@ update-subdirs-SH: doit
196 209
197updates: update-subdirs autoloads finder-data custom-deps 210updates: update-subdirs autoloads finder-data custom-deps
198 211
212# Update the AUTHORS file.
213
214update-authors:
215 $(emacs) -f batch-update-authors $(srcdir)/AUTHORS $(srcdir)
216
199TAGS: $(lisptagsfiles1) $(lisptagsfiles2) 217TAGS: $(lisptagsfiles1) $(lisptagsfiles2)
200 $(ETAGS) $(lisptagsfiles1) $(lisptagsfiles2) 218 $(ETAGS) $(lisptagsfiles1) $(lisptagsfiles2)
201 219
202TAGS-LISP: $(lispsource)$(lisptagsfiles1) $(lispsource)$(lisptagsfiles2) 220TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2)
203 $(ETAGS) -o TAGS-LISP $(lispsource)$(lisptagsfiles1) $(lispsource)$(lisptagsfiles2) 221 $(ETAGS) -o TAGS-LISP $(lisptagsfiles1) $(lisptagsfiles2)
204 222
205.SUFFIXES: .elc .el 223.SUFFIXES: .elc .el
206 224
@@ -210,8 +228,10 @@ TAGS-LISP: $(lispsource)$(lisptagsfiles1) $(lispsource)$(lisptagsfiles2)
210$(DONTCOMPILE:.el=.elc): 228$(DONTCOMPILE:.el=.elc):
211 -$(DEL) $@ 229 -$(DEL) $@
212 230
213# Compile all Lisp files, except those from DONTCOMPILE. This 231# Compile all Lisp files, except those from DONTCOMPILE,
214# compiles files unconditionally. All .elc files are made writable 232# but don't recompile those that are up to date.
233
234# All .elc files are made writable
215# before compilation in case we checked out read-only (CVS option -r). 235# before compilation in case we checked out read-only (CVS option -r).
216# Files MUST be compiled one by one. If we compile several files in a 236# Files MUST be compiled one by one. If we compile several files in a
217# row we can't make sure that the compilation environment is clean. 237# row we can't make sure that the compilation environment is clean.
@@ -220,26 +240,66 @@ $(DONTCOMPILE:.el=.elc):
220# load's in the files being compiled find the right files. 240# load's in the files being compiled find the right files.
221 241
222# Need separate version for sh and native cmd.exe 242# Need separate version for sh and native cmd.exe
223compile-files: subdirs.el compile-files-$(SHELLTYPE) doit 243compile: subdirs.el compile-$(SHELLTYPE) doit
224 244
225compile-files-CMD: 245compile-CMD:
246# -for %f in ($(lisp) $(WINS)) do for %g in (%f\*.elc) do @attrib -r %g
247 for %f in ($(COMPILE_FIRST)) do \
248 if not exist %f \
249 $(emacs) -f batch-byte-compile-if-not-done %f
250 for %f in (. $(WINS)) do for %g in (%f/*.el) do \
251 if not exist %f/%g \
252 $(emacs) -f batch-byte-compile-if-not-done %f/%g
253
254compile-SH:
255# for elc in $(lisp)/*.elc $(lisp)/*/*.elc; do attrib -r $$elc; done
256 for el in $(COMPILE_FIRST); do \
257 echo Compiling $$el; \
258 $(emacs) -f batch-byte-compile $$el; \
259 done
260 for dir in $(lisp) $(WINS); do \
261 for el in $$dir/*.el; do \
262 if test -f $$el; \
263 then \
264 echo Compiling $$el; \
265 $(emacs) -f batch-byte-compile-if-not-done $$el; \
266 fi \
267 done; \
268 done
269
270# Compile all Lisp files, except those from DONTCOMPILE. This
271# is like `compile' but compiles files unconditionally.
272compile-always: subdirs.el compile-always-$(SHELLTYPE) doit
273
274compile-always-CMD:
226# -for %f in ($(lisp) $(WINS)) do for %g in (%f\*.elc) do @attrib -r %g 275# -for %f in ($(lisp) $(WINS)) do for %g in (%f\*.elc) do @attrib -r %g
227 for %f in ($(COMPILE_FIRST)) do $(emacs) -f batch-byte-compile %f 276 for %f in ($(COMPILE_FIRST)) do $(emacs) -f batch-byte-compile %f
228 for %f in (. $(WINS)) do for %g in (%f/*.el) do $(emacs) -f batch-byte-compile %f/%g 277 for %f in (. $(WINS)) do for %g in (%f/*.el) do $(emacs) -f batch-byte-compile %f/%g
229 278
230compile-files-SH: 279compile-always-SH:
231# for elc in $(lisp)/*.elc $(lisp)/*/*.elc; do attrib -r $$elc; done 280# for elc in $(lisp)/*.elc $(lisp)/*/*.elc; do attrib -r $$elc; done
232 for el in $(COMPILE_FIRST); do \ 281 for el in $(COMPILE_FIRST); do \
233 echo Compiling $$el; \ 282 echo Compiling $$el; \
234 $(emacs) -f batch-byte-compile $$el; \ 283 $(emacs) -f batch-byte-compile $$el || exit 1; \
235 done 284 done
236 for dir in $(lisp) $(WINS); do \ 285 for dir in $(lisp) $(WINS); do \
237 for el in $$dir/*.el; do \ 286 for el in $$dir/*.el; do \
238 echo Compiling $$el; \ 287 echo Compiling $$el; \
239 $(emacs) -f batch-byte-compile $$el; \ 288 $(emacs) -f batch-byte-compile $$el || exit 1; \
240 done; \ 289 done; \
241 done 290 done
242 291
292compile-calc: compile-calc-$(SHELLTYPE)
293
294compile-calc-CMD:
295 for %f in ($(lisp)/calc/*.el) do $(emacs) -f batch-byte-compile %f
296
297compile-calc-SH:
298 for el in $(lisp)/calc/*.el; do \
299 echo Compiling $$el; \
300 $(emacs) -f batch-byte-compile $$el || exit 1; \
301 done
302
243# Backup compiled Lisp files in elc.tar.gz. If that file already 303# Backup compiled Lisp files in elc.tar.gz. If that file already
244# exists, make a backup of it. 304# exists, make a backup of it.
245 305
@@ -256,7 +316,7 @@ compile: backup-compiled-files compile-files
256# .elc is present. 316# .elc is present.
257 317
258recompile: doit 318recompile: doit
259 $(emacs) -f batch-byte-recompile-directory . 319 $(emacs) -f batch-byte-recompile-directory $(lisp)
260 320
261# Prepare a bootstrap in the lisp subdirectory. Build loaddefs.el, 321# Prepare a bootstrap in the lisp subdirectory. Build loaddefs.el,
262# because it's not sure it's up-to-date, and if it's not, that might 322# because it's not sure it's up-to-date, and if it's not, that might
@@ -278,7 +338,7 @@ bootstrap-clean-SH:
278 338
279# Generate/update files for the bootstrap process. 339# Generate/update files for the bootstrap process.
280 340
281bootstrap: autoloads compile-files custom-deps 341bootstrap: update-subdirs autoloads compile finder-data custom-deps
282 342
283# 343#
284# Assuming INSTALL_DIR is defined, copy the elisp files to it 344# Assuming INSTALL_DIR is defined, copy the elisp files to it