annotate lisp/makefile.w32-in @ 34670:60c4cf859b30

(news-setup, news-reply-mode): Don't autoload (unused).
author Dave Love <fx@gnu.org>
date Mon, 18 Dec 2000 12:36:19 +0000
parents f719938c6d2e
children dc7adc956a5e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
1 # Hacked up Nmake makefile for GNU Emacs
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
2 # Geoff Voelker (voelker@cs.washington.edu)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
3 # Copyright (c) 1994 Free Software Foundation, Inc.
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.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
6 #
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.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
11 #
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.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
16 #
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
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
19 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
20 # Boston, MA 02111-1307, USA.
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)
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
31
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
32 # 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
33 # e.g. "make EMACS=../src/emacs ...".
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
34
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
35 EMACS = "../bin/emacs.exe"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
36
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
37 # Command line flags for Emacs. This must include --multibyte,
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
38 # otherwise some files will not compile.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
39
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
40 EMACSOPT = -batch --no-init-file --no-site-file --multibyte
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
41
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
42 lisptagsfiles1 = $(lisp)/*.el
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
43 lisptagsfiles2 = $(lisp)/*/*.el
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
44 ETAGS = "../lib-src/$(BLD)/etags"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
45
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
46 # Files which should not be compiled.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
47 # - emacs-lisp/cl-specs.el: only contains `def-edebug-spec's so there's
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
48 # no point compiling it, although it doesn't hurt.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
49
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
50 DONTCOMPILE = \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
51 $(lisp)/bindings.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
52 $(lisp)/cus-load.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
53 $(lisp)/cus-start.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
54 $(lisp)/emacs-lisp/cl-specs.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
55 $(lisp)/eshell/esh-maint.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
56 $(lisp)/eshell/esh-groups.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
57 $(lisp)/finder-inf.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
58 $(lisp)/forms-d2.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
59 $(lisp)/forms-pass.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
60 $(lisp)/generic-x.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
61 $(lisp)/international/latin-1.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
62 $(lisp)/international/latin-2.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
63 $(lisp)/international/latin-3.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
64 $(lisp)/international/latin-4.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
65 $(lisp)/international/latin-5.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
66 $(lisp)/international/latin-8.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
67 $(lisp)/international/latin-9.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
68 $(lisp)/international/mule-conf.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
69 $(lisp)/loaddefs.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
70 $(lisp)/loadup.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
71 $(lisp)/mail/blessmail.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
72 $(lisp)/mail/sc.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
73 $(lisp)/patcomp.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
74 $(lisp)/paths.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
75 $(lisp)/play/bruce.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
76 $(lisp)/subdirs.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
77 $(lisp)/term/internal.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
78 $(lisp)/version.el
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
79
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
80 # Files to compile before others during a bootstrap. This is done
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
81 # to speed up the bootstrap process.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
82
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
83 COMPILE_FIRST = \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
84 $(lisp)/emacs-lisp/byte-opt.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
85 $(lisp)/emacs-lisp/bytecomp.el \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
86 $(lisp)/subr.el
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
87
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
88 # The actual Emacs command run in the targets below.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
89
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
90 emacs = $(EMACS) $(EMACSOPT)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
91
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
92 # Common command to find subdirectories
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
93
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
94 setwins=subdirs=`find $$wd -type d -print`; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
95 for file in $$subdirs; do \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
96 case $$file in */Old | */RCS | */CVS | */CVS/* | */=* ) ;; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
97 *) wins="$$wins $$file" ;; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
98 esac; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
99 done
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
100
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
101 # 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
102 WINS=\
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
103 calendar \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
104 emacs-lisp \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
105 emulation \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
106 eshell \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
107 gnus \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
108 international \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
109 language \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
110 mail \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
111 net \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
112 play \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
113 progmodes \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
114 term \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
115 textmodes
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
116
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
117 doit:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
118
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
119 cus-load.el:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
120 touch $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
121 custom-deps: cus-load.el doit
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
122 @echo Directories: $(WINS)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
123 $(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hooks nil)$(ARGQUOTE) -f custom-make-dependencies $(lisp) $(WINS)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
124
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
125 finder-inf.el:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
126 echo (provide $(SQUOTE)finder-inf)>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
127
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
128 finder-data: finder-inf.el doit
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
129 @echo Directories: $(WINS)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
130 $(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
131
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
132 loaddefs.el:
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:>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
135 echo >> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
136 echo ;;; Local Variables:>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
137 echo ;;; version-control: never>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
138 echo ;;; no-byte-compile: t>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
139 echo ;;; no-update-autoloads: t>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
140 echo ;;; End:>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
141 echo ;;; loaddefs.el ends here>> $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
142
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
143 autoloads: loaddefs.el doit
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
144 @echo Directories: $(WINS)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
145 set EMACSLOADPATH=$(lisp)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
146 $(SETLOADPATH) $(emacs) -l autoload --eval $(ARGQUOTE)(setq find-file-hooks nil generated-autoload-file $(DQUOTE)$(lisp)/loaddefs.el$(DQUOTE))$(ARGQUOTE) -f batch-update-autoloads $(lisp) $(WINS)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
147
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
148 subdirs.el:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
149 $(MAKE) $(MFLAGS) update-subdirs
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
150
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
151 # Need separate version for sh and native cmd.exe
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
152 update-subdirs: update-subdirs-$(SHELLTYPE)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
153
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
154 update-subdirs-CMD: doit
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
155 @set QWINS=
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
156 @for %d in ($(WINS)) do if not (%d)==(term) set QWINS=%QWINS% "%d"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
157 echo ;; In load-path, after this directory should come> subdirs.el
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
158 echo ;; certain of its subdirectories. Here we specify them.>> subdirs.el
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
159 echo (normal-top-level-add-to-load-path $(SQUOTE)(%QWINS%))>> subdirs.el
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
160
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
161 update-subdirs-SH: doit
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
162 wd=$(lisp); $(setwins); \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
163 for file in $$wins; do \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
164 $(srcdir)/update-subdirs $$file; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
165 done;
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 updates: update-subdirs autoloads finder-data custom-deps
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
168
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
169 TAGS: $(lisptagsfiles1) $(lisptagsfiles2)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
170 $(ETAGS) $(lisptagsfiles1) $(lisptagsfiles2)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
171
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
172 TAGS-LISP: $(lispsource)$(lisptagsfiles1) $(lispsource)$(lisptagsfiles2)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
173 $(ETAGS) -o TAGS-LISP $(lispsource)$(lisptagsfiles1) $(lispsource)$(lisptagsfiles2)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
174
33904
c96ec3fcc61b (.SUFFIXES): Add .SUFFIXES.
Andrew Innes <andrewi@gnu.org>
parents: 31677
diff changeset
175 .SUFFIXES: .elc .el
c96ec3fcc61b (.SUFFIXES): Add .SUFFIXES.
Andrew Innes <andrewi@gnu.org>
parents: 31677
diff changeset
176
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
177 .el.elc:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
178 set EMACSLOADPATH=$(lisp)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
179 -$(SETLOADPATH) $(emacs) -f batch-byte-compile $<
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
180
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
181 $(DONTCOMPILE:.el=.elc):
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
182 -$(DEL) $@
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
183
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
184 # Compile all Lisp files, except those from DONTCOMPILE. This
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
185 # compiles files unconditionally. All .elc files are made writable
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
186 # before compilation in case we checked out read-only (CVS option -r).
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
187 # Files MUST be compiled one by one. If we compile several files in a
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
188 # row we can't make sure that the compilation environment is clean.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
189 # We also set the load-path of the Emacs used for compilation to the
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
190 # current directory and its subdirectories, to make sure require's and
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
191 # load's in the files being compiled find the right files.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
192
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
193 # Need separate version for sh and native cmd.exe
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
194 compile-files: subdirs.el compile-files-$(SHELLTYPE) doit
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
195
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
196 compile-files-CMD:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
197 set EMACSLOADPATH=$(lisp)
31677
70dd1b38f43e (compile-files): No need to make .elc files
Andrew Innes <andrewi@gnu.org>
parents: 31631
diff changeset
198 # -for %f in ($(lisp) $(WINS)) do for %g in (%f\*.elc) do @attrib -r %g
31631
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
199 for %f in ($(COMPILE_FIRST)) do $(emacs) -f batch-byte-compile %f
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
200 for %f in ($(lisp) $(WINS)) do for %g in (%f/*.el) do $(emacs) -f batch-byte-compile %f/%g
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
201
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
202 compile-files-SH:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
203 # 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
204 for el in $(COMPILE_FIRST); do \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
205 echo Compiling $$el; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
206 EMACSLOADPATH=$(lisp) $(emacs) -f batch-byte-compile $$el; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
207 done
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
208 for dir in $(lisp) $(WINS); do \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
209 for el in $$dir/*.el; do \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
210 echo Compiling $$el; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
211 EMACSLOADPATH=$(lisp) $(emacs) -f batch-byte-compile $$el; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
212 done; \
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
213 done
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
214
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
215 # 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
216 # exists, make a backup of it.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
217
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
218 backup-compiled-files:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
219 -mv $(lisp)/elc.tar.gz $(lisp)/elc.tar.gz~
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
220 -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
221
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
222 # Compile Lisp files, but save old compiled files first.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
223
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
224 compile: backup-compiled-files compile-files
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
225
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
226 # 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
227 # 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
228 # .elc is present.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
229
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
230 recompile: doit
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
231 set EMACSLOADPATH=$(lisp)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
232 $(SETLOADPATH) $(emacs) -f batch-byte-recompile-directory .
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
233
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
234 # Prepare a bootstrap in the lisp subdirectory. Build loaddefs.el,
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
235 # because it's not sure it's up-to-date, and if it's not, that might
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
236 # lead to errors during the bootstrap because something fails to
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
237 # autoload as expected. Remove compiled Lisp files so that
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
238 # bootstrap-emacs will be built from sources only.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
239
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
240 # Need separate version for sh and native cmd.exe
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
241 bootstrap-clean: bootstrap-clean-$(SHELLTYPE)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
242
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
243 bootstrap-clean-CMD:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
244 if exist $(EMACS) $(MAKE) $(MFLAGS) autoloads
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
245 -for %f in ($(lisp) $(WINS)) do for %g in (%f\*.elc) do @$(DEL) %g
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
246
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
247 bootstrap-clean-SH:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
248 if test -f $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
249 -rm -f $(lisp)/*.elc $(lisp)/*/*.elc
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
250
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
251 # Generate/update files for the bootstrap process.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
252
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
253 bootstrap: autoloads compile-files custom-deps
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
254
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
255 #
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
256 # 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
257 # Windows 95 makes this harder than it should be.
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
258 #
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
259 install:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
260 - mkdir "$(INSTALL_DIR)/lisp"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
261 - $(DEL) ../same-dir.tst
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
262 - $(DEL) "$(INSTALL_DIR)/same-dir.tst"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
263 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
264 #ifdef COPY_LISP_SOURCE
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
265 $(IFNOTSAMEDIR) $(CP_DIR) . "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
266 #else
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
267 # $(IFNOTSAMEDIR) $(CP_DIR) *.elc "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
268 # $(IFNOTSAMEDIR) $(CP) cus-load.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
269 # $(IFNOTSAMEDIR) $(CP) forms*.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
270 # $(IFNOTSAMEDIR) $(CP) patcomp.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
271 # $(IFNOTSAMEDIR) $(CP) subdirs.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
272 # $(IFNOTSAMEDIR) $(CP) version.el "$(INSTALL_DIR)/lisp" $(ENDIF)
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
273 # $(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
274 # $(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
275 # $(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
276 # $(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
277 # $(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
278 #endif
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
279 - $(DEL) ../same-dir.tst
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
280 - $(DEL) "$(INSTALL_DIR)/same-dir.tst"
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
281
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
282 #
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
283 # Maintenance
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 clean:
011566e20a32 Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents: 31620
diff changeset
286 - $(DEL) *~