annotate lisp/makefile.w32-in @ 64868:b35680d9ef84

(Compilation): Use `itemx' instead of `item'. (Grep Searching): Simplify phrase.
author Juri Linkov <juri@jurta.org>
date Tue, 09 Aug 2005 21:48:12 +0000
parents 6358e3c6075c
children 702baea25eb3 2d92f5c9d6ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
55092
9077e3f7cd49 Add "-*- makefile -*-" mode tag.
Juanma Barranquero <lekktu@gmail.com>
parents: 55064
diff changeset
1 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
64769
6358e3c6075c Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64091
diff changeset
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004,
6358e3c6075c Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64091
diff changeset
3 # 2005 Free Software Foundation, Inc.
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
4 #
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
5 # This file is part of GNU Emacs.
47727
53a1d514b214 Add "no-byte-compile: t" to subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents: 47039
diff changeset
6 #
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
7 # GNU Emacs is free software; you can redistribute it and/or modify
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
8 # it under the terms of the GNU General Public License as published by
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
9 # the Free Software Foundation; either version 2, or (at your option)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
10 # any later version.
47727
53a1d514b214 Add "no-byte-compile: t" to subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents: 47039
diff changeset
11 #
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
12 # GNU Emacs is distributed in the hope that it will be useful,
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
15 # GNU General Public License for more details.
47727
53a1d514b214 Add "no-byte-compile: t" to subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents: 47039
diff changeset
16 #
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
17 # You should have received a copy of the GNU General Public License
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
18 # along with GNU Emacs; see the file COPYING. If not, write to the
64091
6fb026ad601f Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 63909
diff changeset
19 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
6fb026ad601f Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 63909
diff changeset
20 # Boston, MA 02110-1301, USA.
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
21 #
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
22
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
23 ALL =
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
24
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
25 all: $(ALL)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
26
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
27 SQUOTE='
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
28 # '
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
29
34273
f719938c6d2e (lisp): Set to an absolute directory, namely
Andrew Innes <andrewi@gnu.org>
parents: 33904
diff changeset
30 lisp = $(CURDIR)
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
31 srcdir = $(CURDIR)/..
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
32
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
33 # You can specify a different executable on the make command line,
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
34 # e.g. "make EMACS=../src/emacs ...".
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
35
35928
83885ae4db3a (EMACS): Use $(THISDIR) to make emacs.exe path
Andrew Innes <andrewi@gnu.org>
parents: 35605
diff changeset
36 EMACS = "$(THISDIR)/../bin/emacs.exe"
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
37
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
38 # Command line flags for Emacs. This must include --multibyte,
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
39 # otherwise some files will not compile.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
40
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
41 EMACSOPT = -batch --no-init-file --no-site-file --multibyte
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
42
37384
cbadcb3ed82d (EMACSLOADPATH): Define.
Andrew Innes <andrewi@gnu.org>
parents: 36918
diff changeset
43 # Set EMACSLOADPATH correctly (already defined in environment).
cbadcb3ed82d (EMACSLOADPATH): Define.
Andrew Innes <andrewi@gnu.org>
parents: 36918
diff changeset
44 EMACSLOADPATH=$(lisp)
cbadcb3ed82d (EMACSLOADPATH): Define.
Andrew Innes <andrewi@gnu.org>
parents: 36918
diff changeset
45
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
46 lisptagsfiles1 = $(lisp)/*.el
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
47 lisptagsfiles2 = $(lisp)/*/*.el
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
48 ETAGS = "../lib-src/$(BLD)/etags"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
49
36918
b485ed237672 (COMPILE_FIRST): Add cc-mode.el
Gerd Moellmann <gerd@gnu.org>
parents: 36378
diff changeset
50 # Files to compile before others during a bootstrap. This is done to
b485ed237672 (COMPILE_FIRST): Add cc-mode.el
Gerd Moellmann <gerd@gnu.org>
parents: 36378
diff changeset
51 # speed up the bootstrap process. The CC files are compiled first
b485ed237672 (COMPILE_FIRST): Add cc-mode.el
Gerd Moellmann <gerd@gnu.org>
parents: 36378
diff changeset
52 # because CC mode tweaks the compilation process, and requiring
b485ed237672 (COMPILE_FIRST): Add cc-mode.el
Gerd Moellmann <gerd@gnu.org>
parents: 36378
diff changeset
53 # cc-mode when it is not compiled doesn't work during the
b485ed237672 (COMPILE_FIRST): Add cc-mode.el
Gerd Moellmann <gerd@gnu.org>
parents: 36378
diff changeset
54 # bootstrapping.
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
55
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
56 COMPILE_FIRST = \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
57 $(lisp)/emacs-lisp/byte-opt.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
58 $(lisp)/emacs-lisp/bytecomp.el \
36918
b485ed237672 (COMPILE_FIRST): Add cc-mode.el
Gerd Moellmann <gerd@gnu.org>
parents: 36378
diff changeset
59 $(lisp)/subr.el \
b485ed237672 (COMPILE_FIRST): Add cc-mode.el
Gerd Moellmann <gerd@gnu.org>
parents: 36378
diff changeset
60 $(lisp)/progmodes/cc-mode.el \
b485ed237672 (COMPILE_FIRST): Add cc-mode.el
Gerd Moellmann <gerd@gnu.org>
parents: 36378
diff changeset
61 $(lisp)/progmodes/cc-vars.el
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
62
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
63 # The actual Emacs command run in the targets below.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
64
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
65 emacs = $(EMACS) $(EMACSOPT)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
66
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
67 # Common command to find subdirectories
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
68
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
69 setwins=subdirs=`find $$wd -type d -print`; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
70 for file in $$subdirs; do \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
71 case $$file in */Old | */RCS | */CVS | */CVS/* | */=* ) ;; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
72 *) wins="$$wins $$file" ;; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
73 esac; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
74 done
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
75
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
76 # Have to define the list of subdirs manually when not using sh.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
77 WINS=\
47039
f89ca946d5c2 (WINS): Add calc and obsolete.
Juanma Barranquero <lekktu@gmail.com>
parents: 46781
diff changeset
78 calc \
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
79 calendar \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
80 emacs-lisp \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
81 emulation \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
82 eshell \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
83 gnus \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
84 international \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
85 language \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
86 mail \
49459
06b77df47802 * mh-e: Created directory. ChangeLog will appear in a week when we
Bill Wohler <wohler@newt.com>
parents: 49259
diff changeset
87 mh-e \
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
88 net \
47039
f89ca946d5c2 (WINS): Add calc and obsolete.
Juanma Barranquero <lekktu@gmail.com>
parents: 46781
diff changeset
89 obsolete \
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
90 play \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
91 progmodes \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
92 term \
44165
32c2b878dabd (WINS): Add the toolbar directory.
Juanma Barranquero <lekktu@gmail.com>
parents: 40753
diff changeset
93 textmodes \
55064
215f0bc58b67 (WINS): Add url/ directory.
Juanma Barranquero <lekktu@gmail.com>
parents: 53015
diff changeset
94 toolbar \
215f0bc58b67 (WINS): Add url/ directory.
Juanma Barranquero <lekktu@gmail.com>
parents: 53015
diff changeset
95 url
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
96
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
97 doit:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
98
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
99 cus-load.el:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
100 touch $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
101 custom-deps: cus-load.el doit
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
102 @echo Directories: $(WINS)
57797
dc994538d85a (custom-deps, autoloads): Fix *-hooks -> *-hook.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 56512
diff changeset
103 -$(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hook nil)$(ARGQUOTE) -f custom-make-dependencies $(lisp) $(WINS)
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
104
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
105 finder-data: doit
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
106 @echo Directories: $(WINS)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
107 $(emacs) -l finder -f finder-compile-keywords-make-dist $(lisp) $(WINS)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
108
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
109 loaddefs.el:
49259
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
110 $(MAKE) $(MFLAGS) loaddefs.el-$(SHELLTYPE)
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
111 cp loaddefs.el-$(SHELLTYPE) $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
112 rm loaddefs.el-$(SHELLTYPE)
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
113
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
114 loaddefs.el-SH:
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
115 echo ";;; loaddefs.el --- automatically extracted autoloads" > $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
116 echo ";;" >> $@; echo ";;; Code:" >> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
117 echo "(autoload 'define-minor-mode \"easy-mmode\")" >>$@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
118 echo "(autoload 'define-ccl-program \"ccl\")" >>$@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
119 echo "(autoload 'regexp-opt \"regexp-opt\")" >>$@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
120 echo "(autoload 'string-to-list \"mule-util\")" >>$@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
121 echo "(autoload 'define-derived-mode \"derived\")" >>$@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
122 echo "(autoload 'encoded-kbd-mode \"encoded-kb\")" >>$@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
123 echo "(defvar cvs-global-menu nil)" >>$@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
124 echo " " >> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
125 echo ";;; Local Variables:" >> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
126 echo ";;; version-control: never" >> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
127 echo ";;; no-byte-compile: t" >> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
128 echo ";;; no-update-autoloads: t" >> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
129 echo ";;; End:" >> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
130 echo ";;; loaddefs.el ends here" >> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
131
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
132 loaddefs.el-CMD:
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
133 echo ;;; loaddefs.el --- automatically extracted autoloads> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
134 echo ;;; Code:>> $@
49259
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
135 echo (autoload 'define-minor-mode "easy-mmode")>> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
136 echo (autoload 'define-ccl-program "ccl")>> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
137 echo (autoload 'regexp-opt "regexp-opt")>> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
138 echo (autoload 'string-to-list "mule-util")>> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
139 echo (autoload 'define-derived-mode "derived")>> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
140 echo (autoload 'encoded-kbd-mode "encoded-kb")>> $@
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
141 echo (defvar cvs-global-menu nil)>> $@
56512
d341e83af4f2 Removed the various "echo." lines from lisp\makefile.w32-in and nt\makefile.w32-in.
Ben Key <bkey1@tampabay.rr.com>
parents: 56151
diff changeset
142 echo ;;; >> $@
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
143 echo ;;; Local Variables:>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
144 echo ;;; version-control: never>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
145 echo ;;; no-byte-compile: t>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
146 echo ;;; no-update-autoloads: t>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
147 echo ;;; End:>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
148 echo ;;; loaddefs.el ends here>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
149
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
150 autoloads: loaddefs.el doit
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
151 @echo Directories: $(WINS)
37807
1b20100095bc (compile-files-CMD, bootstrap-clean-CMD): Use
Andrew Innes <andrewi@gnu.org>
parents: 37384
diff changeset
152 $(emacs) -l autoload \
57797
dc994538d85a (custom-deps, autoloads): Fix *-hooks -> *-hook.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 56512
diff changeset
153 --eval $(ARGQUOTE)(setq find-file-hook nil \
37807
1b20100095bc (compile-files-CMD, bootstrap-clean-CMD): Use
Andrew Innes <andrewi@gnu.org>
parents: 37384
diff changeset
154 find-file-suppress-same-file-warnings t \
1b20100095bc (compile-files-CMD, bootstrap-clean-CMD): Use
Andrew Innes <andrewi@gnu.org>
parents: 37384
diff changeset
155 generated-autoload-file \
1b20100095bc (compile-files-CMD, bootstrap-clean-CMD): Use
Andrew Innes <andrewi@gnu.org>
parents: 37384
diff changeset
156 $(DQUOTE)$(lisp)/loaddefs.el$(DQUOTE))$(ARGQUOTE) \
1b20100095bc (compile-files-CMD, bootstrap-clean-CMD): Use
Andrew Innes <andrewi@gnu.org>
parents: 37384
diff changeset
157 -f batch-update-autoloads $(lisp) $(WINS)
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
158
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
159 subdirs.el:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
160 $(MAKE) $(MFLAGS) update-subdirs
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
161
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
162 # Need separate version for sh and native cmd.exe
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
163 update-subdirs: update-subdirs-$(SHELLTYPE)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
164
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
165 update-subdirs-CMD: doit
47727
53a1d514b214 Add "no-byte-compile: t" to subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents: 47039
diff changeset
166 echo ;; -*- no-byte-compile: t -*->subdirs.el
53a1d514b214 Add "no-byte-compile: t" to subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents: 47039
diff changeset
167 echo ;; In load-path, after this directory should come>> subdirs.el
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
168 echo ;; certain of its subdirectories. Here we specify them.>> subdirs.el
46757
01659e103b99 (update-subdirs-CMD): Generate the right list of subdirectories. From
Juanma Barranquero <lekktu@gmail.com>
parents: 46755
diff changeset
169 echo (normal-top-level-add-to-load-path $(SQUOTE)(>> subdirs.el
56151
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
170 @for %%d in ($(WINS)) do if not (%%d)==(term) echo "%%d">> subdirs.el
46757
01659e103b99 (update-subdirs-CMD): Generate the right list of subdirectories. From
Juanma Barranquero <lekktu@gmail.com>
parents: 46755
diff changeset
171 echo ))>> subdirs.el
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
172
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
173 update-subdirs-SH: doit
49482
a5390a508759 (update-subdirs-SH): Create lisp/subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents: 49459
diff changeset
174 $(srcdir)/update-subdirs $(lisp); \
49259
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
175 for file in $(WINS); do \
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
176 $(srcdir)/update-subdirs $$file; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
177 done;
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
178
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
179 updates: update-subdirs autoloads finder-data custom-deps
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
180
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
181 # Update the AUTHORS file.
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
182
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
183 update-authors:
61527
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
184 $(emacs) -l authors -f batch-update-authors $(srcdir)/AUTHORS $(srcdir)
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
185
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
186 TAGS: $(lisptagsfiles1) $(lisptagsfiles2)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
187 $(ETAGS) $(lisptagsfiles1) $(lisptagsfiles2)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
188
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
189 TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2)
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
190 $(ETAGS) -o TAGS-LISP $(lisptagsfiles1) $(lisptagsfiles2)
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
191
33904
c96ec3fcc61b (.SUFFIXES): Add .SUFFIXES.
Andrew Innes <andrewi@gnu.org>
parents: 31677
diff changeset
192 .SUFFIXES: .elc .el
c96ec3fcc61b (.SUFFIXES): Add .SUFFIXES.
Andrew Innes <andrewi@gnu.org>
parents: 31677
diff changeset
193
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
194 .el.elc:
37384
cbadcb3ed82d (EMACSLOADPATH): Define.
Andrew Innes <andrewi@gnu.org>
parents: 36918
diff changeset
195 -$(emacs) -f batch-byte-compile $<
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
196
61527
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
197 # Compile all Lisp files, but don't recompile those that are up to
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
198 # date. Some files don't actually get compiled because they set the
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
199 # local variable no-byte-compile.
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
200
61527
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
201 # All .elc files are made writable before compilation in case we
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
202 # checked out read-only (CVS option -r). Files MUST be compiled one by
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
203 # one. If we compile several files in a row we can't make sure that
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
204 # the compilation environment is clean. We also set the load-path of
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
205 # the Emacs used for compilation to the current directory and its
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
206 # subdirectories, to make sure require's and load's in the files being
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
207 # compiled find the right files.
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
208
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
209 # Need separate version for sh and native cmd.exe
46781
d93e5af9e50e (compile-after-backup): Renamed from `compile'.
Richard M. Stallman <rms@gnu.org>
parents: 46757
diff changeset
210 compile: subdirs.el compile-$(SHELLTYPE) doit
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
211
46781
d93e5af9e50e (compile-after-backup): Renamed from `compile'.
Richard M. Stallman <rms@gnu.org>
parents: 46757
diff changeset
212 compile-CMD:
56151
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
213 # -for %%f in ($(lisp) $(WINS)) do for %%g in (%%f\*.elc) do @attrib -r %%g
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
214 for %%f in ($(COMPILE_FIRST)) do \
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
215 $(emacs) -l loaddefs -f batch-byte-compile-if-not-done %%f
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
216 for %%f in (. $(WINS)) do for %%g in (%%f/*.el) do \
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
217 $(emacs) -l loaddefs -f batch-byte-compile-if-not-done %%f/%%g
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
218
46781
d93e5af9e50e (compile-after-backup): Renamed from `compile'.
Richard M. Stallman <rms@gnu.org>
parents: 46757
diff changeset
219 compile-SH:
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
220 # for elc in $(lisp)/*.elc $(lisp)/*/*.elc; do attrib -r $$elc; done
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
221 for el in $(COMPILE_FIRST); do \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
222 echo Compiling $$el; \
49259
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
223 $(emacs) -l loaddefs -f batch-byte-compile-if-not-done $$el; \
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
224 done
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
225 for dir in $(lisp) $(WINS); do \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
226 for el in $$dir/*.el; do \
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
227 if test -f $$el; \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
228 then \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
229 echo Compiling $$el; \
49259
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
230 $(emacs) -l loaddefs -f batch-byte-compile-if-not-done $$el; \
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
231 fi \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
232 done; \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
233 done
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
234
61527
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
235 # Compile all Lisp files. This is like `compile' but compiles files
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
236 # unconditionally. Some files don't actually get compiled because they
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
237 # set the local variable no-byte-compile.
020a384cb96d (DONTCOMPILE): Remove list.
Lute Kamstra <lute@gnu.org>
parents: 57797
diff changeset
238
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
239 compile-always: subdirs.el compile-always-$(SHELLTYPE) doit
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
240
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
241 compile-always-CMD:
56151
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
242 # -for %%f in ($(lisp) $(WINS)) do for %%g in (%%f\*.elc) do @attrib -r %%g
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
243 for %%f in ($(COMPILE_FIRST)) do $(emacs) -f batch-byte-compile %%f
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
244 for %%f in (. $(WINS)) do for %%g in (%%f/*.el) do $(emacs) -f batch-byte-compile %%f/%%g
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
245
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
246 compile-always-SH:
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
247 # for elc in $(lisp)/*.elc $(lisp)/*/*.elc; do attrib -r $$elc; done
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
248 for el in $(COMPILE_FIRST); do \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
249 echo Compiling $$el; \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
250 $(emacs) -f batch-byte-compile $$el || exit 1; \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
251 done
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
252 for dir in $(lisp) $(WINS); do \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
253 for el in $$dir/*.el; do \
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
254 echo Compiling $$el; \
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
255 $(emacs) -f batch-byte-compile $$el || exit 1; \
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
256 done; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
257 done
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
258
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
259 compile-calc: compile-calc-$(SHELLTYPE)
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
260
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
261 compile-calc-CMD:
56151
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
262 for %%f in ($(lisp)/calc/*.el) do $(emacs) -f batch-byte-compile %%f
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
263
47727
53a1d514b214 Add "no-byte-compile: t" to subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents: 47039
diff changeset
264 compile-calc-SH:
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
265 for el in $(lisp)/calc/*.el; do \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
266 echo Compiling $$el; \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
267 $(emacs) -f batch-byte-compile $$el || exit 1; \
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
268 done
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
269
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
270 # Backup compiled Lisp files in elc.tar.gz. If that file already
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
271 # exists, make a backup of it.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
272
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
273 backup-compiled-files:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
274 -mv $(lisp)/elc.tar.gz $(lisp)/elc.tar.gz~
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
275 -tar czf $(lisp)/elc.tar.gz $(lisp)/*.elc $(lisp)/*/*.elc
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
276
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
277 # Compile Lisp files, but save old compiled files first.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
278
46781
d93e5af9e50e (compile-after-backup): Renamed from `compile'.
Richard M. Stallman <rms@gnu.org>
parents: 46757
diff changeset
279 compile-after-backup: backup-compiled-files compile-always
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
280
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
281 # Recompile all Lisp files which are newer than their .elc files.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
282 # Note that this doesn't create .elc files. It only recompiles if an
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
283 # .elc is present.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
284
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
285 recompile: doit
46629
73124278175b (DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents: 44192
diff changeset
286 $(emacs) -f batch-byte-recompile-directory $(lisp)
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
287
52512
c7ef303c76f2 Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-48
Miles Bader <miles@gnu.org>
parents: 52401
diff changeset
288 # Prepare a bootstrap in the lisp subdirectory.
c7ef303c76f2 Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-48
Miles Bader <miles@gnu.org>
parents: 52401
diff changeset
289 #
63341
dccd42ff9e1a (bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
Eli Zaretskii <eliz@gnu.org>
parents: 61527
diff changeset
290 # Build loaddefs.el to make sure it's up-to-date. If it's not, that
dccd42ff9e1a (bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
Eli Zaretskii <eliz@gnu.org>
parents: 61527
diff changeset
291 # might lead to errors during the bootstrap because something fails to
dccd42ff9e1a (bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
Eli Zaretskii <eliz@gnu.org>
parents: 61527
diff changeset
292 # autoload as expected. If there is no emacs binary, then we can't
dccd42ff9e1a (bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
Eli Zaretskii <eliz@gnu.org>
parents: 61527
diff changeset
293 # build autoloads yet. In that case we have to use ldefs-boot.el;
dccd42ff9e1a (bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
Eli Zaretskii <eliz@gnu.org>
parents: 61527
diff changeset
294 # bootstrap should always work with ldefs-boot.el. (Because
dccd42ff9e1a (bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
Eli Zaretskii <eliz@gnu.org>
parents: 61527
diff changeset
295 # loaddefs.el is an automatically generated file, we don't want to
dccd42ff9e1a (bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
Eli Zaretskii <eliz@gnu.org>
parents: 61527
diff changeset
296 # store it in the source repository).
52512
c7ef303c76f2 Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-48
Miles Bader <miles@gnu.org>
parents: 52401
diff changeset
297 #
c7ef303c76f2 Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-48
Miles Bader <miles@gnu.org>
parents: 52401
diff changeset
298 # Remove compiled Lisp files so that bootstrap-emacs will be built from
c7ef303c76f2 Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-48
Miles Bader <miles@gnu.org>
parents: 52401
diff changeset
299 # sources only.
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
300
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
301 # Need separate version for sh and native cmd.exe
49259
d6211ef9bbb4 (loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents: 47727
diff changeset
302 bootstrap-clean: bootstrap-clean-$(SHELLTYPE) loaddefs.el
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
303
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
304 bootstrap-clean-CMD:
40753
5483ff487a13 (bootstrap-clean-CMD, bootstrap-clean-SH): Don't
Andrew Innes <andrewi@gnu.org>
parents: 38843
diff changeset
305 # if exist $(EMACS) $(MAKE) $(MFLAGS) autoloads
63341
dccd42ff9e1a (bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
Eli Zaretskii <eliz@gnu.org>
parents: 61527
diff changeset
306 cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el
56151
9ef25bd8db0d Double percent signs in for loops.
Jason Rumney <jasonr@gnu.org>
parents: 56026
diff changeset
307 -for %%f in (. $(WINS)) do for %%g in (%%f\*.elc) do @$(DEL) %%g
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
308
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
309 bootstrap-clean-SH:
40753
5483ff487a13 (bootstrap-clean-CMD, bootstrap-clean-SH): Don't
Andrew Innes <andrewi@gnu.org>
parents: 38843
diff changeset
310 # if test -f $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi
44192
1c7d75d3c175 (bootstrap-clean-SH): Use for loop, instead of
Andrew Innes <andrewi@gnu.org>
parents: 44167
diff changeset
311 # -rm -f $(lisp)/*.elc $(lisp)/*/*.elc
63341
dccd42ff9e1a (bootstrap-clean-CMD, bootstrap-clean-SH): Don't use an old loaddefs.el,
Eli Zaretskii <eliz@gnu.org>
parents: 61527
diff changeset
312 cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el
44192
1c7d75d3c175 (bootstrap-clean-SH): Use for loop, instead of
Andrew Innes <andrewi@gnu.org>
parents: 44167
diff changeset
313 -for dir in . $(WINS); do rm -f $$dir/*.elc; done
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
314
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
315 # Generate/update files for the bootstrap process.
63909
8ecb3fd4aded (bootstrap): Remove the $(EMACS) binary after updating all the
Eli Zaretskii <eliz@gnu.org>
parents: 63341
diff changeset
316 # When done, remove bootstrap-emacs from ../bin, so that
8ecb3fd4aded (bootstrap): Remove the $(EMACS) binary after updating all the
Eli Zaretskii <eliz@gnu.org>
parents: 63341
diff changeset
317 # it will not be mistaken for an installed binary.
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
318
46781
d93e5af9e50e (compile-after-backup): Renamed from `compile'.
Richard M. Stallman <rms@gnu.org>
parents: 46757
diff changeset
319 bootstrap: update-subdirs autoloads compile finder-data custom-deps
63909
8ecb3fd4aded (bootstrap): Remove the $(EMACS) binary after updating all the
Eli Zaretskii <eliz@gnu.org>
parents: 63341
diff changeset
320 - $(DEL) $(EMACS)
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
321
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
322 #
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
323 # Assuming INSTALL_DIR is defined, copy the elisp files to it
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
324 # Windows 95 makes this harder than it should be.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
325 #
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
326 install:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
327 - mkdir "$(INSTALL_DIR)/lisp"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
328 - $(DEL) ../same-dir.tst
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
329 - $(DEL) "$(INSTALL_DIR)/same-dir.tst"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
330 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
331 #ifdef COPY_LISP_SOURCE
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
332 $(IFNOTSAMEDIR) $(CP_DIR) . "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
333 #else
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
334 # $(IFNOTSAMEDIR) $(CP_DIR) *.elc "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
335 # $(IFNOTSAMEDIR) $(CP) cus-load.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
336 # $(IFNOTSAMEDIR) $(CP) forms*.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
337 # $(IFNOTSAMEDIR) $(CP) patcomp.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
338 # $(IFNOTSAMEDIR) $(CP) subdirs.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
339 # $(IFNOTSAMEDIR) $(CP) version.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
340 # $(IFNOTSAMEDIR) $(CP) mail/blessmail.el "$(INSTALL_DIR)/lisp/mail" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
341 # $(IFNOTSAMEDIR) $(CP) mail/sc.el "$(INSTALL_DIR)/lisp/mail" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
342 # $(IFNOTSAMEDIR) $(CP) play/bruce.el "$(INSTALL_DIR)/lisp/play" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
343 # $(IFNOTSAMEDIR) $(CP) international/latin-*.el "$(INSTALL_DIR)/lisp/international" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
344 # $(IFNOTSAMEDIR) $(CP) international/mule-conf.el "$(INSTALL_DIR)/lisp/international" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
345 #endif
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
346 - $(DEL) ../same-dir.tst
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
347 - $(DEL) "$(INSTALL_DIR)/same-dir.tst"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
348
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
349 #
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
350 # Maintenance
47727
53a1d514b214 Add "no-byte-compile: t" to subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents: 47039
diff changeset
351 #
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
352 clean:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
353 - $(DEL) *~