aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorEli Zaretskii2012-04-07 11:26:32 +0300
committerEli Zaretskii2012-04-07 11:26:32 +0300
commit1dcece25987df8bd3e98ed8c936d9179bfa2f830 (patch)
tree836457f79e2e9f6ba3e07d326fb203265017339b /nt
parent3811fdf3e8b65f39d6388768a3c9643fe293f7f1 (diff)
downloademacs-1dcece25987df8bd3e98ed8c936d9179bfa2f830.tar.gz
emacs-1dcece25987df8bd3e98ed8c936d9179bfa2f830.zip
Convert nt/makefile.w32-in to Unix EOL format.
Diffstat (limited to 'nt')
-rw-r--r--nt/ChangeLog4
-rw-r--r--nt/makefile.w32-in930
2 files changed, 469 insertions, 465 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index d0a85a4a319..cecf6ac3aca 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,7 @@
12012-04-07 Eli Zaretskii <eliz@gnu.org>
2
3 * makefile.w32-in: Convert to Unix EOL format.
4
12012-03-29 Eli Zaretskii <eliz@gnu.org> 52012-03-29 Eli Zaretskii <eliz@gnu.org>
2 6
3 * config.nt: Discourage from defining HAVE_GETCWD. 7 * config.nt: Discourage from defining HAVE_GETCWD.
diff --git a/nt/makefile.w32-in b/nt/makefile.w32-in
index 2f25fd448da..e37a4603291 100644
--- a/nt/makefile.w32-in
+++ b/nt/makefile.w32-in
@@ -1,465 +1,465 @@
1# -*- Makefile -*- for GNU Emacs on the Microsoft W32 API. 1# -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
2# Copyright (C) 2000-2012 Free Software Foundation, Inc. 2# Copyright (C) 2000-2012 Free Software Foundation, Inc.
3# 3#
4# Top level makefile for building GNU Emacs on Windows NT 4# Top level makefile for building GNU Emacs on Windows NT
5# 5#
6# This file is part of GNU Emacs. 6# This file is part of GNU Emacs.
7 7
8# GNU Emacs is free software: you can redistribute it and/or modify 8# GNU Emacs is free software: you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by 9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or 10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version. 11# (at your option) any later version.
12 12
13# GNU Emacs is distributed in the hope that it will be useful, 13# GNU Emacs is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of 14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details. 16# GNU General Public License for more details.
17 17
18# You should have received a copy of the GNU General Public License 18# You should have received a copy of the GNU General Public License
19# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 19# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20 20
21 21
22# FIXME: This file uses DOS EOLs. Convert to Unix after 22.1 is out 22# FIXME: This file uses DOS EOLs. Convert to Unix after 22.1 is out
23# (and remove or replace this comment). 23# (and remove or replace this comment).
24 24
25VERSION = 24.0.95 25VERSION = 24.0.95
26 26
27TMP_DIST_DIR = emacs-$(VERSION) 27TMP_DIST_DIR = emacs-$(VERSION)
28 28
29TRES = $(BLD)/emacs.res 29TRES = $(BLD)/emacs.res
30CLIENTRES = $(BLD)/emacsclient.res 30CLIENTRES = $(BLD)/emacsclient.res
31 31
32XMFLAGS = 32XMFLAGS =
33 33
34ALL = addpm ddeclient runemacs cmdproxy addsection preprep 34ALL = addpm ddeclient runemacs cmdproxy addsection preprep
35 35
36.PHONY: $(ALL) 36.PHONY: $(ALL)
37 37
38 38
39addpm: stamp_BLD $(BLD)/addpm.exe 39addpm: stamp_BLD $(BLD)/addpm.exe
40$(BLD)/addpm.exe: $(BLD)/addpm.$(O) 40$(BLD)/addpm.exe: $(BLD)/addpm.$(O)
41 $(LINK) $(LINK_OUT)$@ \ 41 $(LINK) $(LINK_OUT)$@ \
42 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) \ 42 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) \
43 $(USER32) $(OLE32) $(UUID) $(SHELL32) 43 $(USER32) $(OLE32) $(UUID) $(SHELL32)
44 44
45ddeclient: stamp_BLD $(BLD)/ddeclient.exe 45ddeclient: stamp_BLD $(BLD)/ddeclient.exe
46$(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O) 46$(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O)
47 $(LINK) $(LINK_OUT)$@ \ 47 $(LINK) $(LINK_OUT)$@ \
48 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) 48 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32)
49 49
50cmdproxy: stamp_BLD $(BLD)/cmdproxy.exe 50cmdproxy: stamp_BLD $(BLD)/cmdproxy.exe
51$(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O) 51$(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O)
52 $(LINK) $(LINK_OUT)$@ \ 52 $(LINK) $(LINK_OUT)$@ \
53 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) 53 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
54 54
55addsection: stamp_BLD $(BLD)/addsection.exe 55addsection: stamp_BLD $(BLD)/addsection.exe
56$(BLD)/addsection.exe: $(BLD)/addsection.$(O) 56$(BLD)/addsection.exe: $(BLD)/addsection.$(O)
57 $(LINK) $(LINK_OUT)$@ \ 57 $(LINK) $(LINK_OUT)$@ \
58 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) 58 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
59 59
60preprep: stamp_BLD $(BLD)/preprep.exe 60preprep: stamp_BLD $(BLD)/preprep.exe
61$(BLD)/preprep.exe: $(BLD)/preprep.$(O) 61$(BLD)/preprep.exe: $(BLD)/preprep.$(O)
62 $(LINK) $(LINK_OUT)$@ \ 62 $(LINK) $(LINK_OUT)$@ \
63 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) 63 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS)
64 64
65# 65#
66# The resource file. NT 3.10 requires the use of cvtres; even though 66# The resource file. NT 3.10 requires the use of cvtres; even though
67# it is not necessary on later versions, it is still ok to use it. 67# it is not necessary on later versions, it is still ok to use it.
68# 68#
69$(TRES): emacs.rc icons/emacs.ico emacs.manifest stamp_BLD 69$(TRES): emacs.rc icons/emacs.ico emacs.manifest stamp_BLD
70 $(RC) $(RC_OUT)$(TRES) emacs.rc 70 $(RC) $(RC_OUT)$(TRES) emacs.rc
71 71
72$(CLIENTRES): emacsclient.rc stamp_BLD 72$(CLIENTRES): emacsclient.rc stamp_BLD
73 $(RC) $(RC_OUT)$(CLIENTRES) emacsclient.rc 73 $(RC) $(RC_OUT)$(CLIENTRES) emacsclient.rc
74 74
75runemacs: stamp_BLD $(BLD)/runemacs.exe 75runemacs: stamp_BLD $(BLD)/runemacs.exe
76$(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES) 76$(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES)
77 $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \ 77 $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \
78 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) 78 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32)
79 79
80which-sh: 80which-sh:
81 @echo Using $(THE_SHELL) as shell. 81 @echo Using $(THE_SHELL) as shell.
82 82
83# These depend on stamp_BLD to make sure the $(BLD) directory is created 83# These depend on stamp_BLD to make sure the $(BLD) directory is created
84# before the compilation begins, even if Make runs several commands 84# before the compilation begins, even if Make runs several commands
85# in parallel under "make -j". 85# in parallel under "make -j".
86# 86#
87$(BLD)/addpm.$(O) $(BLD)/ddeclient.$(O) $(BLD)/runemacs.$(O) $(BLD)/cmdproxy.$(O) $(BLD)/addsection.$(O) $(BLD)/preprep.$(O): stamp_BLD 87$(BLD)/addpm.$(O) $(BLD)/ddeclient.$(O) $(BLD)/runemacs.$(O) $(BLD)/cmdproxy.$(O) $(BLD)/addsection.$(O) $(BLD)/preprep.$(O): stamp_BLD
88 88
89# 89#
90# Build emacs 90# Build emacs
91# 91#
92all: which-sh stamp_BLD $(ALL) $(CLIENTRES) maybe-bootstrap all-other-dirs-$(MAKETYPE) 92all: which-sh stamp_BLD $(ALL) $(CLIENTRES) maybe-bootstrap all-other-dirs-$(MAKETYPE)
93 93
94all-other-dirs-nmake: addsection 94all-other-dirs-nmake: addsection
95 cd ..\lib 95 cd ..\lib
96 $(MAKE) $(MFLAGS) all 96 $(MAKE) $(MFLAGS) all
97 cd ..\lib-src 97 cd ..\lib-src
98 $(MAKE) $(MFLAGS) all 98 $(MAKE) $(MFLAGS) all
99 cd ..\src 99 cd ..\src
100 $(MAKE) $(MFLAGS) all 100 $(MAKE) $(MFLAGS) all
101 cd ..\lisp 101 cd ..\lisp
102 $(MAKE) $(MFLAGS) all 102 $(MAKE) $(MFLAGS) all
103 cd ..\leim 103 cd ..\leim
104 $(MAKE) $(MFLAGS) all 104 $(MAKE) $(MFLAGS) all
105 cd ..\nt 105 cd ..\nt
106 106
107all-other-dirs-gmake: addsection 107all-other-dirs-gmake: addsection
108 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib all 108 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib all
109 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src all 109 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src all
110 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src all 110 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src all
111 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp all 111 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp all
112 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim all 112 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim all
113 113
114recompile: recompile-$(MAKETYPE) 114recompile: recompile-$(MAKETYPE)
115 115
116recompile-nmake: 116recompile-nmake:
117 cd ..\lisp 117 cd ..\lisp
118 $(MAKE) $(MFLAGS) recompile 118 $(MAKE) $(MFLAGS) recompile
119 cd ..\nt 119 cd ..\nt
120 120
121recompile-gmake: 121recompile-gmake:
122 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp recompile 122 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp recompile
123 123
124#### Bootstrapping. 124#### Bootstrapping.
125 125
126### This is meant for Emacs maintainers only. It first cleans the 126### This is meant for Emacs maintainers only. It first cleans the
127### lisp subdirectory, removing all compiled Lisp files. Then a 127### lisp subdirectory, removing all compiled Lisp files. Then a
128### special emacs executable is built from Lisp sources, which is then 128### special emacs executable is built from Lisp sources, which is then
129### used to compile Lisp files. The last step is a "normal" make. 129### used to compile Lisp files. The last step is a "normal" make.
130 130
131maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE) 131maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE)
132 132
133# dummy target to force other targets to be evaluated. 133# dummy target to force other targets to be evaluated.
134doit: 134doit:
135 135
136maybe-bootstrap-CMD: doit 136maybe-bootstrap-CMD: doit
137 @echo . 137 @echo .
138 @if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing. You should either 138 @if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing. You should either
139 @if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow 139 @if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow
140 @echo . 140 @echo .
141 @if not EXIST ..\lisp\abbrev.elc exit -1 141 @if not EXIST ..\lisp\abbrev.elc exit -1
142 142
143maybe-bootstrap-SH: doit 143maybe-bootstrap-SH: doit
144 @if [ ! -f ../lisp/abbrev.elc ] ; then \ 144 @if [ ! -f ../lisp/abbrev.elc ] ; then \
145 echo; \ 145 echo; \
146 echo "Essential Lisp files seem to be missing. You should either"; \ 146 echo "Essential Lisp files seem to be missing. You should either"; \
147 echo "do \`make bootstrap' or create \`lisp/abbrev.elc' somehow."; \ 147 echo "do \`make bootstrap' or create \`lisp/abbrev.elc' somehow."; \
148 echo; \ 148 echo; \
149 exit -1; \ 149 exit -1; \
150 fi 150 fi
151 151
152# Bootstrap depends on cmdproxy because some Lisp functions 152# Bootstrap depends on cmdproxy because some Lisp functions
153# loaded during bootstrap may need to run shell commands. 153# loaded during bootstrap may need to run shell commands.
154bootstrap: addsection cmdproxy bootstrap-$(MAKETYPE) 154bootstrap: addsection cmdproxy bootstrap-$(MAKETYPE)
155 $(MAKE) $(MFLAGS) $(XMFLAGS) all 155 $(MAKE) $(MFLAGS) $(XMFLAGS) all
156 156
157bootstrap-nmake: addsection cmdproxy 157bootstrap-nmake: addsection cmdproxy
158 cd ..\lisp 158 cd ..\lisp
159 $(MAKE) $(MFLAGS) bootstrap-clean 159 $(MAKE) $(MFLAGS) bootstrap-clean
160 cd ..\src 160 cd ..\src
161 $(MAKE) $(MFLAGS) clean 161 $(MAKE) $(MFLAGS) clean
162 cd ..\lib-src 162 cd ..\lib-src
163 $(MAKE) $(MFLAGS) clean make-docfile 163 $(MAKE) $(MFLAGS) clean make-docfile
164 cd ..\lib 164 cd ..\lib
165 $(MAKE) $(MFLAGS) clean all 165 $(MAKE) $(MFLAGS) clean all
166 cd ..\src 166 cd ..\src
167 $(MAKE) $(MFLAGS) bootstrap 167 $(MAKE) $(MFLAGS) bootstrap
168 $(MAKE) $(MFLAGS) bootstrap-clean 168 $(MAKE) $(MFLAGS) bootstrap-clean
169 cd ..\nt 169 cd ..\nt
170 $(CP) $(BLD)/cmdproxy.exe ../bin 170 $(CP) $(BLD)/cmdproxy.exe ../bin
171 cd ..\lisp 171 cd ..\lisp
172 $(MAKE) $(MFLAGS) SHELL=$(SHELLTYPE) bootstrap 172 $(MAKE) $(MFLAGS) SHELL=$(SHELLTYPE) bootstrap
173 cd ..\lib-src 173 cd ..\lib-src
174 $(MAKE) $(MFLAGS) DOC 174 $(MAKE) $(MFLAGS) DOC
175 cd ..\nt 175 cd ..\nt
176 176
177bootstrap-gmake: addsection cmdproxy 177bootstrap-gmake: addsection cmdproxy
178 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean 178 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean
179 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean 179 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean
180 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean make-docfile 180 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean make-docfile
181 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean all 181 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean all
182 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap 182 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap
183 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean 183 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean
184 $(CP) $(BLD)/cmdproxy.exe ../bin 184 $(CP) $(BLD)/cmdproxy.exe ../bin
185 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap 185 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap
186 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src DOC 186 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src DOC
187 187
188bootstrap-clean: bootstrap-clean-$(MAKETYPE) 188bootstrap-clean: bootstrap-clean-$(MAKETYPE)
189 189
190bootstrap-clean-nmake: 190bootstrap-clean-nmake:
191 cd ..\src 191 cd ..\src
192 $(MAKE) $(MFLAGS) bootstrap-clean 192 $(MAKE) $(MFLAGS) bootstrap-clean
193 cd ..\lib 193 cd ..\lib
194 $(MAKE) $(MFLAGS) clean 194 $(MAKE) $(MFLAGS) clean
195 cd ..\lisp 195 cd ..\lisp
196 $(MAKE) $(MFLAGS) bootstrap-clean 196 $(MAKE) $(MFLAGS) bootstrap-clean
197 197
198bootstrap-clean-gmake: 198bootstrap-clean-gmake:
199 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean 199 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean
200 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean 200 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean
201 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean 201 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean
202 202
203$(INSTALL_DIR): 203$(INSTALL_DIR):
204 - mkdir "$(INSTALL_DIR)" 204 - mkdir "$(INSTALL_DIR)"
205 205
206$(INSTALL_DIR)/bin: $(INSTALL_DIR) 206$(INSTALL_DIR)/bin: $(INSTALL_DIR)
207 - mkdir "$(INSTALL_DIR)/bin" 207 - mkdir "$(INSTALL_DIR)/bin"
208 208
209# 209#
210# Build and install emacs in INSTALL_DIR 210# Build and install emacs in INSTALL_DIR
211# 211#
212.PHONY: install-bin install-shortcuts 212.PHONY: install-bin install-shortcuts
213 213
214install: install-bin install-shortcuts 214install: install-bin install-shortcuts
215 215
216install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) 216install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE)
217 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin 217 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin
218 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin 218 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin
219 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin 219 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin
220 - $(CP) README.W32 $(INSTALL_DIR) 220 - $(CP) README.W32 $(INSTALL_DIR)
221 - $(DEL) ../$(DIRNAME)_same-dir.tst 221 - $(DEL) ../$(DIRNAME)_same-dir.tst
222 - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst 222 - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst
223 echo SameDirTest > "$(INSTALL_DIR)/$(DIRNAME)_same-dir.tst" 223 echo SameDirTest > "$(INSTALL_DIR)/$(DIRNAME)_same-dir.tst"
224 - mkdir "$(INSTALL_DIR)/etc" 224 - mkdir "$(INSTALL_DIR)/etc"
225 - mkdir "$(INSTALL_DIR)/info" 225 - mkdir "$(INSTALL_DIR)/info"
226 - mkdir "$(INSTALL_DIR)/lock" 226 - mkdir "$(INSTALL_DIR)/lock"
227 - mkdir "$(INSTALL_DIR)/data" 227 - mkdir "$(INSTALL_DIR)/data"
228 - mkdir "$(INSTALL_DIR)/site-lisp" 228 - mkdir "$(INSTALL_DIR)/site-lisp"
229 - mkdir "$(INSTALL_DIR)/etc/icons" 229 - mkdir "$(INSTALL_DIR)/etc/icons"
230 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF) 230 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF)
231 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF) 231 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF)
232 - $(CP_DIR) icons $(INSTALL_DIR)/etc 232 - $(CP_DIR) icons $(INSTALL_DIR)/etc
233 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF) 233 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF)
234 $(IFNOTSAMEDIR) $(CP) ../COPYING $(INSTALL_DIR) $(ENDIF) 234 $(IFNOTSAMEDIR) $(CP) ../COPYING $(INSTALL_DIR) $(ENDIF)
235 - $(CP) ../COPYING $(INSTALL_DIR)/bin 235 - $(CP) ../COPYING $(INSTALL_DIR)/bin
236 - $(DEL) ../$(DIRNAME)_same-dir.tst 236 - $(DEL) ../$(DIRNAME)_same-dir.tst
237 - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst 237 - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst
238 238
239install-other-dirs-nmake: all 239install-other-dirs-nmake: all
240 cd ..\lib-src 240 cd ..\lib-src
241 $(MAKE) $(MFLAGS) install 241 $(MAKE) $(MFLAGS) install
242 cd ..\src 242 cd ..\src
243 $(MAKE) $(MFLAGS) install 243 $(MAKE) $(MFLAGS) install
244 cd ..\lisp 244 cd ..\lisp
245 $(MAKE) $(MFLAGS) install 245 $(MAKE) $(MFLAGS) install
246 cd ..\leim 246 cd ..\leim
247 $(MAKE) $(MFLAGS) install 247 $(MAKE) $(MFLAGS) install
248 cd ..\nt 248 cd ..\nt
249 249
250install-other-dirs-gmake: all 250install-other-dirs-gmake: all
251 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install 251 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install
252 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install 252 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install
253 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install 253 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install
254 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install 254 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install
255 255
256install-shortcuts: $(INSTALL_DIR)/bin 256install-shortcuts: $(INSTALL_DIR)/bin
257 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin 257 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin
258 "$(INSTALL_DIR)/bin/addpm" -q 258 "$(INSTALL_DIR)/bin/addpm" -q
259 259
260maybe-copy-distfiles: maybe-copy-distfiles-$(SHELLTYPE) 260maybe-copy-distfiles: maybe-copy-distfiles-$(SHELLTYPE)
261 261
262maybe-copy-distfiles-CMD: create-tmp-dist-dir doit 262maybe-copy-distfiles-CMD: create-tmp-dist-dir doit
263 @if not $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin 263 @if not $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin
264 264
265maybe-copy-distfiles-SH: create-tmp-dist-dir doit 265maybe-copy-distfiles-SH: create-tmp-dist-dir doit
266 @if [ ! $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" ] ; then \ 266 @if [ ! $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" ] ; then \
267 $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin ; \ 267 $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin ; \
268 fi 268 fi
269 269
270create-tmp-dist-dir: 270create-tmp-dist-dir:
271 mkdir "$(TMP_DIST_DIR)" 271 mkdir "$(TMP_DIST_DIR)"
272# Also create bin directory for dist files. 272# Also create bin directory for dist files.
273 mkdir "$(TMP_DIST_DIR)/bin" 273 mkdir "$(TMP_DIST_DIR)/bin"
274 274
275dist: install-bin maybe-copy-distfiles 275dist: install-bin maybe-copy-distfiles
276 $(CP) "$(INSTALL_DIR)/BUGS" $(TMP_DIST_DIR) 276 $(CP) "$(INSTALL_DIR)/BUGS" $(TMP_DIST_DIR)
277 $(CP) "$(INSTALL_DIR)/COPYING" $(TMP_DIST_DIR) 277 $(CP) "$(INSTALL_DIR)/COPYING" $(TMP_DIST_DIR)
278 $(CP) "$(INSTALL_DIR)/README" $(TMP_DIST_DIR) 278 $(CP) "$(INSTALL_DIR)/README" $(TMP_DIST_DIR)
279 $(CP) "$(INSTALL_DIR)/README.W32" $(TMP_DIST_DIR) 279 $(CP) "$(INSTALL_DIR)/README.W32" $(TMP_DIST_DIR)
280 $(CP_DIR) "$(INSTALL_DIR)/bin" $(TMP_DIST_DIR) 280 $(CP_DIR) "$(INSTALL_DIR)/bin" $(TMP_DIST_DIR)
281 $(CP_DIR) "$(INSTALL_DIR)/etc" $(TMP_DIST_DIR) 281 $(CP_DIR) "$(INSTALL_DIR)/etc" $(TMP_DIST_DIR)
282 $(CP_DIR) "$(INSTALL_DIR)/info" $(TMP_DIST_DIR) 282 $(CP_DIR) "$(INSTALL_DIR)/info" $(TMP_DIST_DIR)
283 $(CP_DIR) "$(INSTALL_DIR)/lisp" $(TMP_DIST_DIR) 283 $(CP_DIR) "$(INSTALL_DIR)/lisp" $(TMP_DIST_DIR)
284 $(CP_DIR) "$(INSTALL_DIR)/leim" $(TMP_DIST_DIR) 284 $(CP_DIR) "$(INSTALL_DIR)/leim" $(TMP_DIST_DIR)
285 $(CP_DIR) "$(INSTALL_DIR)/site-lisp" $(TMP_DIST_DIR) 285 $(CP_DIR) "$(INSTALL_DIR)/site-lisp" $(TMP_DIST_DIR)
286 $(COMSPEC)$(ComSpec) /c $(ARGQUOTE)zipdist.bat $(VERSION)$(ARGQUOTE) 286 $(COMSPEC)$(ComSpec) /c $(ARGQUOTE)zipdist.bat $(VERSION)$(ARGQUOTE)
287 $(DEL_TREE) $(TMP_DIST_DIR) 287 $(DEL_TREE) $(TMP_DIST_DIR)
288 288
289force-info: 289force-info:
290# Note that doc/emacs/makefile knows how to 290# Note that doc/emacs/makefile knows how to
291# put the info files in $(infodir), 291# put the info files in $(infodir),
292# so we can do ok running make in the build dir. 292# so we can do ok running make in the build dir.
293info: force-info info-$(MAKETYPE) 293info: force-info info-$(MAKETYPE)
294 294
295info-nmake: 295info-nmake:
296 cd ..\doc\emacs 296 cd ..\doc\emacs
297 $(MAKE) $(MFLAGS) info 297 $(MAKE) $(MFLAGS) info
298 cd ..\misc 298 cd ..\misc
299 $(MAKE) $(MFLAGS) info 299 $(MAKE) $(MFLAGS) info
300 cd ..\lispref 300 cd ..\lispref
301 $(MAKE) $(MFLAGS) info 301 $(MAKE) $(MFLAGS) info
302 cd ..\lispintro 302 cd ..\lispintro
303 $(MAKE) $(MFLAGS) info 303 $(MAKE) $(MFLAGS) info
304 cd $(MAKEDIR) 304 cd $(MAKEDIR)
305 305
306info-gmake: 306info-gmake:
307 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs info 307 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs info
308 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc info 308 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc info
309 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref info 309 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref info
310 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro info 310 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro info
311# 311#
312# Maintenance 312# Maintenance
313# 313#
314clean: clean-other-dirs-$(MAKETYPE) 314clean: clean-other-dirs-$(MAKETYPE)
315 - $(DEL) $(COMPILER_TEMP_FILES) 315 - $(DEL) $(COMPILER_TEMP_FILES)
316 - $(DEL_TREE) $(OBJDIR) 316 - $(DEL_TREE) $(OBJDIR)
317 - $(DEL) stamp_BLD 317 - $(DEL) stamp_BLD
318 - $(DEL) ../etc/DOC ../etc/DOC-X 318 - $(DEL) ../etc/DOC ../etc/DOC-X
319 319
320clean-other-dirs-nmake: 320clean-other-dirs-nmake:
321 cd ..\lib 321 cd ..\lib
322 $(MAKE) $(MFLAGS) clean 322 $(MAKE) $(MFLAGS) clean
323 cd ..\lib-src 323 cd ..\lib-src
324 $(MAKE) $(MFLAGS) clean 324 $(MAKE) $(MFLAGS) clean
325 cd ..\src 325 cd ..\src
326 $(MAKE) $(MFLAGS) clean 326 $(MAKE) $(MFLAGS) clean
327 cd ..\doc\lispintro 327 cd ..\doc\lispintro
328 $(MAKE) $(MFLAGS) clean 328 $(MAKE) $(MFLAGS) clean
329 cd ..\lispref 329 cd ..\lispref
330 $(MAKE) $(MFLAGS) clean 330 $(MAKE) $(MFLAGS) clean
331 cd ..\..\leim 331 cd ..\..\leim
332 $(MAKE) $(MFLAGS) clean 332 $(MAKE) $(MFLAGS) clean
333 cd ..\doc\emacs 333 cd ..\doc\emacs
334 $(MAKE) $(MFLAGS) clean 334 $(MAKE) $(MFLAGS) clean
335 cd ..\misc 335 cd ..\misc
336 $(MAKE) $(MFLAGS) clean 336 $(MAKE) $(MFLAGS) clean
337 cd ..\..\nt 337 cd ..\..\nt
338 338
339clean-other-dirs-gmake: 339clean-other-dirs-gmake:
340 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean 340 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean
341 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean 341 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean
342 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean 342 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean
343 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim clean 343 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim clean
344 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs clean 344 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs clean
345 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc clean 345 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc clean
346 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro clean 346 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro clean
347 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref clean 347 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref clean
348 348
349cleanall-other-dirs-nmake: 349cleanall-other-dirs-nmake:
350 cd ..\lib 350 cd ..\lib
351 $(MAKE) $(MFLAGS) cleanall 351 $(MAKE) $(MFLAGS) cleanall
352 cd ..\lib-src 352 cd ..\lib-src
353 $(MAKE) $(MFLAGS) cleanall 353 $(MAKE) $(MFLAGS) cleanall
354 cd ..\src 354 cd ..\src
355 $(MAKE) $(MFLAGS) cleanall 355 $(MAKE) $(MFLAGS) cleanall
356 cd ..\nt 356 cd ..\nt
357 357
358cleanall-other-dirs-gmake: 358cleanall-other-dirs-gmake:
359 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib cleanall 359 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib cleanall
360 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src cleanall 360 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src cleanall
361 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src cleanall 361 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src cleanall
362 362
363# We used to delete *~ here, but that might inadvertently remove 363# We used to delete *~ here, but that might inadvertently remove
364# precious files if it happens to match their short 8+3 aliases. 364# precious files if it happens to match their short 8+3 aliases.
365cleanall: clean cleanall-other-dirs-$(MAKETYPE) 365cleanall: clean cleanall-other-dirs-$(MAKETYPE)
366 - $(DEL_TREE) obj 366 - $(DEL_TREE) obj
367 - $(DEL_TREE) obj-spd 367 - $(DEL_TREE) obj-spd
368 - $(DEL_TREE) oo 368 - $(DEL_TREE) oo
369 - $(DEL_TREE) oo-spd 369 - $(DEL_TREE) oo-spd
370 370
371top-distclean: 371top-distclean:
372 - $(DEL) $(COMPILER_TEMP_FILES) 372 - $(DEL) $(COMPILER_TEMP_FILES)
373 - $(DEL_TREE) obj 373 - $(DEL_TREE) obj
374 - $(DEL_TREE) obj-spd 374 - $(DEL_TREE) obj-spd
375 - $(DEL_TREE) oo 375 - $(DEL_TREE) oo
376 - $(DEL_TREE) oo-spd 376 - $(DEL_TREE) oo-spd
377 - $(DEL) stamp_BLD 377 - $(DEL) stamp_BLD
378 - $(DEL) ../etc/DOC ../etc/DOC-X 378 - $(DEL) ../etc/DOC ../etc/DOC-X
379 - $(DEL) config.log Makefile 379 - $(DEL) config.log Makefile
380 - $(DEL) ../README.W32 380 - $(DEL) ../README.W32
381 381
382distclean: distclean-other-dirs-$(MAKETYPE) top-distclean 382distclean: distclean-other-dirs-$(MAKETYPE) top-distclean
383 383
384distclean-other-dirs-nmake: 384distclean-other-dirs-nmake:
385 cd ..\lib 385 cd ..\lib
386 $(MAKE) $(MFLAGS) distclean 386 $(MAKE) $(MFLAGS) distclean
387 cd ..\lib-src 387 cd ..\lib-src
388 $(MAKE) $(MFLAGS) distclean 388 $(MAKE) $(MFLAGS) distclean
389 cd ..\src 389 cd ..\src
390 $(MAKE) $(MFLAGS) distclean 390 $(MAKE) $(MFLAGS) distclean
391 cd ..\lisp 391 cd ..\lisp
392 $(MAKE) $(MFLAGS) distclean 392 $(MAKE) $(MFLAGS) distclean
393 cd ..\leim 393 cd ..\leim
394 $(MAKE) $(MFLAGS) distclean 394 $(MAKE) $(MFLAGS) distclean
395 cd ..\doc\emacs 395 cd ..\doc\emacs
396 $(MAKE) $(MFLAGS) distclean 396 $(MAKE) $(MFLAGS) distclean
397 cd ..\misc 397 cd ..\misc
398 $(MAKE) $(MFLAGS) distclean 398 $(MAKE) $(MFLAGS) distclean
399 cd ..\lispintro 399 cd ..\lispintro
400 $(MAKE) $(MFLAGS) distclean 400 $(MAKE) $(MFLAGS) distclean
401 cd ..\lispref 401 cd ..\lispref
402 $(MAKE) $(MFLAGS) distclean 402 $(MAKE) $(MFLAGS) distclean
403 cd ..\..\nt 403 cd ..\..\nt
404 404
405distclean-other-dirs-gmake: 405distclean-other-dirs-gmake:
406 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib distclean 406 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib distclean
407 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src distclean 407 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src distclean
408 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src distclean 408 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src distclean
409 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp distclean 409 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp distclean
410 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim distclean 410 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim distclean
411 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs distclean 411 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs distclean
412 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc distclean 412 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc distclean
413 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro distclean 413 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro distclean
414 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref distclean 414 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref distclean
415 415
416maintainer-clean: maintainer-clean-other-dirs-$(MAKETYPE) top-distclean 416maintainer-clean: maintainer-clean-other-dirs-$(MAKETYPE) top-distclean
417 417
418maintainer-clean-other-dirs-nmake: 418maintainer-clean-other-dirs-nmake:
419 cd ..\lib 419 cd ..\lib
420 $(MAKE) $(MFLAGS) maintainer-clean 420 $(MAKE) $(MFLAGS) maintainer-clean
421 cd ..\lib-src 421 cd ..\lib-src
422 $(MAKE) $(MFLAGS) maintainer-clean 422 $(MAKE) $(MFLAGS) maintainer-clean
423 cd ..\src 423 cd ..\src
424 $(MAKE) $(MFLAGS) maintainer-clean 424 $(MAKE) $(MFLAGS) maintainer-clean
425 cd ..\lisp 425 cd ..\lisp
426 $(MAKE) $(MFLAGS) maintainer-clean 426 $(MAKE) $(MFLAGS) maintainer-clean
427 cd ..\leim 427 cd ..\leim
428 $(MAKE) $(MFLAGS) maintainer-clean 428 $(MAKE) $(MFLAGS) maintainer-clean
429 cd ..\doc\emacs 429 cd ..\doc\emacs
430 $(MAKE) $(MFLAGS) maintainer-clean 430 $(MAKE) $(MFLAGS) maintainer-clean
431 cd ..\misc 431 cd ..\misc
432 $(MAKE) $(MFLAGS) maintainer-clean 432 $(MAKE) $(MFLAGS) maintainer-clean
433 cd ..\lispintro 433 cd ..\lispintro
434 $(MAKE) $(MFLAGS) maintainer-clean 434 $(MAKE) $(MFLAGS) maintainer-clean
435 cd ..\lispref 435 cd ..\lispref
436 $(MAKE) $(MFLAGS) maintainer-clean 436 $(MAKE) $(MFLAGS) maintainer-clean
437 cd ..\..\nt 437 cd ..\..\nt
438 438
439maintainer-clean-other-dirs-gmake: 439maintainer-clean-other-dirs-gmake:
440 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib maintainer-clean 440 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib maintainer-clean
441 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src maintainer-clean 441 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src maintainer-clean
442 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src maintainer-clean 442 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src maintainer-clean
443 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp maintainer-clean 443 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp maintainer-clean
444 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim maintainer-clean 444 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim maintainer-clean
445 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs maintainer-clean 445 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/emacs maintainer-clean
446 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc maintainer-clean 446 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/misc maintainer-clean
447 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro maintainer-clean 447 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispintro maintainer-clean
448 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref maintainer-clean 448 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref maintainer-clean
449 449
450realclean: cleanall 450realclean: cleanall
451 - $(DEL_TREE) ../bin 451 - $(DEL_TREE) ../bin
452 452
453TAGS: TAGS-$(MAKETYPE) 453TAGS: TAGS-$(MAKETYPE)
454 454
455frc: 455frc:
456TAGS-gmake: frc 456TAGS-gmake: frc
457 ../lib-src/$(BLD)/etags $(CURDIR)/*.c 457 ../lib-src/$(BLD)/etags $(CURDIR)/*.c
458 $(MAKE) $(MFLAGS) -C ../src TAGS TAGS-LISP 458 $(MAKE) $(MFLAGS) -C ../src TAGS TAGS-LISP
459 $(MAKE) $(MFLAGS) -C ../lib-src TAGS 459 $(MAKE) $(MFLAGS) -C ../lib-src TAGS
460 $(MAKE) $(MFLAGS) -C ../lib TAGS 460 $(MAKE) $(MFLAGS) -C ../lib TAGS
461 461
462TAGS-nmake: 462TAGS-nmake:
463 echo This target is not supported with NMake 463 echo This target is not supported with NMake
464 464
465.PHONY: frc 465.PHONY: frc