Mercurial > emacs
annotate lisp/makefile.w32-in @ 88155:d7ddb3e565de
sync with trunk
author | Henrik Enberg <henrik.enberg@telia.com> |
---|---|
date | Mon, 16 Jan 2006 00:03:54 +0000 |
parents | 1df1c7ec81fd |
children |
rev | line source |
---|---|
88155 | 1 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API. |
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, | |
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 |
88155 | 19 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
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 | 43 # Set EMACSLOADPATH correctly (already defined in environment). |
44 EMACSLOADPATH=$(lisp) | |
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 \ |
88155 | 94 url |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
95 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
96 doit: |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
97 |
88155 | 98 $(lisp)/cus-load.el: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
99 touch $@ |
88155 | 100 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as |
101 # this can break with GNU Make 3.81 and later if sh.exe is used. | |
102 custom-deps: $(lisp)/cus-load.el doit | |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
103 @echo Directories: $(WINS) |
88155 | 104 -$(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
|
105 |
46629
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
106 finder-data: doit |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
107 @echo Directories: $(WINS) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
108 $(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
|
109 |
88155 | 110 $(lisp)/loaddefs.el: |
49259
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
111 $(MAKE) $(MFLAGS) loaddefs.el-$(SHELLTYPE) |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
112 cp loaddefs.el-$(SHELLTYPE) $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
113 rm loaddefs.el-$(SHELLTYPE) |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
114 |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
115 loaddefs.el-SH: |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
116 echo ";;; loaddefs.el --- automatically extracted autoloads" > $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
117 echo ";;" >> $@; echo ";;; Code:" >> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
118 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
|
119 echo "(autoload 'define-ccl-program \"ccl\")" >>$@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
120 echo "(autoload 'regexp-opt \"regexp-opt\")" >>$@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
121 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
|
122 echo "(autoload 'define-derived-mode \"derived\")" >>$@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
123 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
|
124 echo "(defvar cvs-global-menu nil)" >>$@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
125 echo "" >> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
126 echo ";;; Local Variables:" >> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
127 echo ";;; version-control: never" >> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
128 echo ";;; no-byte-compile: t" >> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
129 echo ";;; no-update-autoloads: t" >> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
130 echo ";;; End:" >> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
131 echo ";;; loaddefs.el ends here" >> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
132 |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
133 loaddefs.el-CMD: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
134 echo ;;; loaddefs.el --- automatically extracted autoloads> $@ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
135 echo ;;; Code:>> $@ |
49259
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
136 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
|
137 echo (autoload 'define-ccl-program "ccl")>> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
138 echo (autoload 'regexp-opt "regexp-opt")>> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
139 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
|
140 echo (autoload 'define-derived-mode "derived")>> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
141 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
|
142 echo (defvar cvs-global-menu nil)>> $@ |
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
143 echo.>> $@ |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
144 echo ;;; Local Variables:>> $@ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
145 echo ;;; version-control: never>> $@ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
146 echo ;;; no-byte-compile: t>> $@ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
147 echo ;;; no-update-autoloads: t>> $@ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
148 echo ;;; End:>> $@ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
149 echo ;;; loaddefs.el ends here>> $@ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
150 |
88155 | 151 # Use . instead of $(lisp) because $(lisp) is an absolute file name, |
152 # including a drive letter and any leading directories, so the generated | |
153 # loaddefs.el will mention file names that on other machine reference | |
154 # possibly non-existent directories. | |
155 # | |
156 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as | |
157 # this can break with GNU Make 3.81 and later if sh.exe is used. | |
158 autoloads: $(lisp)/loaddefs.el doit | |
159 @echo Directories: . $(WINS) | |
37807
1b20100095bc
(compile-files-CMD, bootstrap-clean-CMD): Use
Andrew Innes <andrewi@gnu.org>
parents:
37384
diff
changeset
|
160 $(emacs) -l autoload \ |
88155 | 161 --eval $(ARGQUOTE)(setq find-file-hook nil find-file-suppress-same-file-warnings t)$(ARGQUOTE) \ |
162 -f w32-batch-update-autoloads "$(lisp)/loaddefs.el" . $(WINS) | |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
163 |
88155 | 164 $(lisp)/subdirs.el: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
165 $(MAKE) $(MFLAGS) update-subdirs |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
166 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
167 # Need separate version for sh and native cmd.exe |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
168 update-subdirs: update-subdirs-$(SHELLTYPE) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
169 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
170 update-subdirs-CMD: doit |
88155 | 171 echo ;; -*- no-byte-compile: t -*-> $(lisp)/subdirs.el |
172 echo ;; In load-path, after this directory should come>> $(lisp)/subdirs.el | |
173 echo ;; certain of its subdirectories. Here we specify them.>> $(lisp)/subdirs.el | |
174 echo (normal-top-level-add-to-load-path $(SQUOTE)(>> $(lisp)/subdirs.el | |
175 @for %%d in ($(WINS)) do if not (%%d)==(term) echo "%%d">> $(lisp)/subdirs.el | |
176 echo ))>> $(lisp)/subdirs.el | |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
177 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
178 update-subdirs-SH: doit |
49482
a5390a508759
(update-subdirs-SH): Create lisp/subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents:
49459
diff
changeset
|
179 $(srcdir)/update-subdirs $(lisp); \ |
49259
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
180 for file in $(WINS); do \ |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
181 $(srcdir)/update-subdirs $$file; \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
182 done; |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
183 |
88155 | 184 updates: update-subdirs autoloads mh-autoloads finder-data custom-deps |
185 | |
186 # This is useful after "cvs up". | |
187 cvs-update: recompile autoloads finder-data custom-deps | |
31631
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 # Update the AUTHORS file. |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
190 |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
191 update-authors: |
88155 | 192 $(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
|
193 |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
194 TAGS: $(lisptagsfiles1) $(lisptagsfiles2) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
195 $(ETAGS) $(lisptagsfiles1) $(lisptagsfiles2) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
196 |
46629
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
197 TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
198 $(ETAGS) -o TAGS-LISP $(lisptagsfiles1) $(lisptagsfiles2) |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
199 |
33904
c96ec3fcc61b
(.SUFFIXES): Add .SUFFIXES.
Andrew Innes <andrewi@gnu.org>
parents:
31677
diff
changeset
|
200 .SUFFIXES: .elc .el |
c96ec3fcc61b
(.SUFFIXES): Add .SUFFIXES.
Andrew Innes <andrewi@gnu.org>
parents:
31677
diff
changeset
|
201 |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
202 .el.elc: |
37384 | 203 -$(emacs) -f batch-byte-compile $< |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
204 |
88155 | 205 # Compile all Lisp files, but don't recompile those that are up to |
206 # date. Some files don't actually get compiled because they set the | |
207 # local variable no-byte-compile. | |
46629
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
208 |
88155 | 209 # All .elc files are made writable before compilation in case we |
210 # checked out read-only (CVS option -r). Files MUST be compiled one by | |
211 # one. If we compile several files in a row we can't make sure that | |
212 # the compilation environment is clean. We also set the load-path of | |
213 # the Emacs used for compilation to the current directory and its | |
214 # subdirectories, to make sure require's and load's in the files being | |
215 # compiled find the right files. | |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
216 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
217 # Need separate version for sh and native cmd.exe |
88155 | 218 compile: $(lisp)/subdirs.el mh-autoloads compile-$(SHELLTYPE) doit |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
219 |
46781
d93e5af9e50e
(compile-after-backup): Renamed from `compile'.
Richard M. Stallman <rms@gnu.org>
parents:
46757
diff
changeset
|
220 compile-CMD: |
88155 | 221 # -for %%f in ($(lisp) $(WINS)) do for %%g in (%%f\*.elc) do @attrib -r %%g |
222 for %%f in ($(COMPILE_FIRST)) do \ | |
223 $(emacs) -l loaddefs -f batch-byte-compile-if-not-done %%f | |
224 for %%f in (. $(WINS)) do for %%g in (%%f/*.el) do \ | |
225 $(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
|
226 |
46781
d93e5af9e50e
(compile-after-backup): Renamed from `compile'.
Richard M. Stallman <rms@gnu.org>
parents:
46757
diff
changeset
|
227 compile-SH: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
228 # 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
|
229 for el in $(COMPILE_FIRST); do \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
230 echo Compiling $$el; \ |
49259
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
231 $(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
|
232 done |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
233 for dir in $(lisp) $(WINS); do \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
234 for el in $$dir/*.el; do \ |
46629
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
235 if test -f $$el; \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
236 then \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
237 echo Compiling $$el; \ |
49259
d6211ef9bbb4
(loaddefs.el): Invoke make to build stub file
Andrew Innes <andrewi@gnu.org>
parents:
47727
diff
changeset
|
238 $(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
|
239 fi \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
240 done; \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
241 done |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
242 |
88155 | 243 # Compile all Lisp files. This is like `compile' but compiles files |
244 # unconditionally. Some files don't actually get compiled because they | |
245 # set the local variable no-byte-compile. | |
246 | |
247 compile-always: $(lisp)/subdirs.el compile-always-$(SHELLTYPE) doit | |
46629
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
248 |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
249 compile-always-CMD: |
88155 | 250 # -for %%f in ($(lisp) $(WINS)) do for %%g in (%%f\*.elc) do @attrib -r %%g |
251 for %%f in ($(COMPILE_FIRST)) do $(emacs) -f batch-byte-compile %%f | |
252 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
|
253 |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
254 compile-always-SH: |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
255 # 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
|
256 for el in $(COMPILE_FIRST); do \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
257 echo Compiling $$el; \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
258 $(emacs) -f batch-byte-compile $$el || exit 1; \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
259 done |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
260 for dir in $(lisp) $(WINS); do \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
261 for el in $$dir/*.el; do \ |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
262 echo Compiling $$el; \ |
46629
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
263 $(emacs) -f batch-byte-compile $$el || exit 1; \ |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
264 done; \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
265 done |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
266 |
46629
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
267 compile-calc: compile-calc-$(SHELLTYPE) |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
268 |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
269 compile-calc-CMD: |
88155 | 270 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
|
271 |
47727
53a1d514b214
Add "no-byte-compile: t" to subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents:
47039
diff
changeset
|
272 compile-calc-SH: |
46629
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
273 for el in $(lisp)/calc/*.el; do \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
274 echo Compiling $$el; \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
275 $(emacs) -f batch-byte-compile $$el || exit 1; \ |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
276 done |
73124278175b
(DONTCOMPILE): Remove cus-start.el.
Andrew Innes <andrewi@gnu.org>
parents:
44192
diff
changeset
|
277 |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
278 # 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
|
279 # exists, make a backup of it. |
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 backup-compiled-files: |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
282 -mv $(lisp)/elc.tar.gz $(lisp)/elc.tar.gz~ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
283 -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
|
284 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
285 # Compile Lisp files, but save old compiled files first. |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
286 |
46781
d93e5af9e50e
(compile-after-backup): Renamed from `compile'.
Richard M. Stallman <rms@gnu.org>
parents:
46757
diff
changeset
|
287 compile-after-backup: backup-compiled-files compile-always |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
288 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
289 # 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
|
290 # 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
|
291 # .elc is present. |
88155 | 292 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as |
293 # this can break with GNU Make 3.81 and later if sh.exe is used. | |
294 recompile: mh-autoloads doit $(lisp)/progmodes/cc-mode.elc | |
295 $(emacs) --eval $(ARGQUOTE)(batch-byte-recompile-directory 0)$(ARGQUOTE) $(lisp) | |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
296 |
88155 | 297 # Update MH-E internal autoloads. These are not to be confused with |
298 # the autoloads for the MH-E entry points, which are already in | |
299 # loaddefs.el. | |
300 MH_E_SRC = $(lisp)/mh-e/mh-acros.el $(lisp)/mh-e/mh-alias.el \ | |
301 $(lisp)/mh-e/mh-buffers.el $(lisp)/mh-e/mh-comp.el \ | |
302 $(lisp)/mh-e/mh-customize.el $(lisp)/mh-e/mh-e.el \ | |
303 $(lisp)/mh-e/mh-funcs.el $(lisp)/mh-e/mh-identity.el \ | |
304 $(lisp)/mh-e/mh-inc.el $(lisp)/mh-e/mh-init.el \ | |
305 $(lisp)/mh-e/mh-junk.el $(lisp)/mh-e/mh-mime.el \ | |
306 $(lisp)/mh-e/mh-print.el $(lisp)/mh-e/mh-search.el \ | |
307 $(lisp)/mh-e/mh-seq.el $(lisp)/mh-e/mh-speed.el \ | |
308 $(lisp)/mh-e/mh-utils.el | |
309 | |
310 mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el | |
311 $(lisp)/mh-e/mh-loaddefs.el: $(MH_E_SRC) | |
312 $(MAKE) $(MFLAGS) pre-mh-loaddefs.el-$(SHELLTYPE) | |
313 cp pre-mh-loaddefs.el-$(SHELLTYPE) $@ | |
314 rm pre-mh-loaddefs.el-$(SHELLTYPE) | |
315 $(EMACS) $(EMACSOPT) \ | |
316 -l autoload \ | |
317 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ | |
318 --eval "(setq find-file-suppress-same-file-warnings t)" \ | |
319 --eval "(setq make-backup-files nil)" \ | |
320 -f w32-batch-update-autoloads \ | |
321 "$(lisp)/mh-e/mh-loaddefs.el" $(lisp)/mh-e | |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
322 |
88155 | 323 pre-mh-loaddefs.el-SH: |
324 echo ";;; mh-loaddefs.el --- automatically extracted autoloads" > $@ | |
325 echo ";;" >> $@ | |
326 echo ";; Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc." >> $@ | |
327 echo ";; Author: Bill Wohler <wohler@newt.com>" >> $@ | |
328 echo ";; Keywords: mail" >> $@ | |
329 echo ";;; Commentary:" >> $@ | |
330 echo ";;; Change Log:" >> $@ | |
331 echo ";;; Code:" >> $@ | |
332 echo "" >> $@ | |
333 echo "(provide 'mh-loaddefs)" >> $@ | |
334 echo ";; Local Variables:" >> $@ | |
335 echo ";; version-control: never" >> $@ | |
336 echo ";; no-byte-compile: t" >> $@ | |
337 echo ";; no-update-autoloads: t" >> $@ | |
338 echo ";; End:" >> $@ | |
339 echo ";;; mh-loaddefs.el ends here" >> $@ | |
340 | |
341 pre-mh-loaddefs.el-CMD: | |
342 echo ;;; mh-loaddefs.el --- automatically extracted autoloads> $@ | |
343 echo ;;>> $@ | |
344 echo ;; Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.>> $@ | |
345 echo ;; Author: Bill Wohler (wohler@newt.com)>> $@ | |
346 echo ;; Keywords: mail>> $@ | |
347 echo ;;; Commentary:>> $@ | |
348 echo ;;; Change Log:>> $@ | |
349 echo ;;; Code:>> $@ | |
350 echo.>> $@ | |
351 echo (provide 'mh-loaddefs)>> $@ | |
352 echo ;; Local Variables:>> $@ | |
353 echo ;; version-control: never>> $@ | |
354 echo ;; no-byte-compile: t>> $@ | |
355 echo ;; no-update-autoloads: t>> $@ | |
356 echo ;; End:>> $@ | |
357 echo ;;; mh-loaddefs.el ends here>> $@ | |
358 | |
359 # Prepare a bootstrap in the lisp subdirectory. | |
360 # | |
361 # Build loaddefs.el to make sure it's up-to-date. If it's not, that | |
362 # might lead to errors during the bootstrap because something fails to | |
363 # autoload as expected. If there is no emacs binary, then we can't | |
364 # build autoloads yet. In that case we have to use ldefs-boot.el; | |
365 # bootstrap should always work with ldefs-boot.el. (Because | |
366 # loaddefs.el is an automatically generated file, we don't want to | |
367 # store it in the source repository). | |
368 # | |
369 # Remove compiled Lisp files so that bootstrap-emacs will be built from | |
370 # sources only. | |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
371 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
372 # Need separate version for sh and native cmd.exe |
88155 | 373 bootstrap-clean: bootstrap-clean-$(SHELLTYPE) $(lisp)/loaddefs.el |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
374 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
375 bootstrap-clean-CMD: |
40753
5483ff487a13
(bootstrap-clean-CMD, bootstrap-clean-SH): Don't
Andrew Innes <andrewi@gnu.org>
parents:
38843
diff
changeset
|
376 # if exist $(EMACS) $(MAKE) $(MFLAGS) autoloads |
88155 | 377 cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el |
378 -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
|
379 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
380 bootstrap-clean-SH: |
40753
5483ff487a13
(bootstrap-clean-CMD, bootstrap-clean-SH): Don't
Andrew Innes <andrewi@gnu.org>
parents:
38843
diff
changeset
|
381 # 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
|
382 # -rm -f $(lisp)/*.elc $(lisp)/*/*.elc |
88155 | 383 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
|
384 -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
|
385 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
386 # Generate/update files for the bootstrap process. |
88155 | 387 # When done, remove bootstrap-emacs from ../bin, so that |
388 # 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
|
389 |
88155 | 390 bootstrap: update-subdirs autoloads mh-autoloads compile finder-data custom-deps |
391 - $(DEL) $(EMACS) | |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
392 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
393 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
394 # 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
|
395 # Windows 95 makes this harder than it should be. |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
396 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
397 install: |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
398 - mkdir "$(INSTALL_DIR)/lisp" |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
399 - $(DEL) ../same-dir.tst |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
400 - $(DEL) "$(INSTALL_DIR)/same-dir.tst" |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
401 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
402 #ifdef COPY_LISP_SOURCE |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
403 $(IFNOTSAMEDIR) $(CP_DIR) . "$(INSTALL_DIR)/lisp" $(ENDIF) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
404 #else |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
405 # $(IFNOTSAMEDIR) $(CP_DIR) *.elc "$(INSTALL_DIR)/lisp" $(ENDIF) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
406 # $(IFNOTSAMEDIR) $(CP) cus-load.el "$(INSTALL_DIR)/lisp" $(ENDIF) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
407 # $(IFNOTSAMEDIR) $(CP) forms*.el "$(INSTALL_DIR)/lisp" $(ENDIF) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
408 # $(IFNOTSAMEDIR) $(CP) patcomp.el "$(INSTALL_DIR)/lisp" $(ENDIF) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
409 # $(IFNOTSAMEDIR) $(CP) subdirs.el "$(INSTALL_DIR)/lisp" $(ENDIF) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
410 # $(IFNOTSAMEDIR) $(CP) version.el "$(INSTALL_DIR)/lisp" $(ENDIF) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
411 # $(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
|
412 # $(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
|
413 # $(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
|
414 # $(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
|
415 # $(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
|
416 #endif |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
417 - $(DEL) ../same-dir.tst |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
418 - $(DEL) "$(INSTALL_DIR)/same-dir.tst" |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
419 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
420 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
421 # Maintenance |
47727
53a1d514b214
Add "no-byte-compile: t" to subdirs.el.
Juanma Barranquero <lekktu@gmail.com>
parents:
47039
diff
changeset
|
422 # |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
423 clean: |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31620
diff
changeset
|
424 - $(DEL) *~ |