root/branches/2.1/nt/makefile.meadow.w32-in

Revision 3636, 7.0 kB (checked in by kose, 4 years ago)

* INSTALL.Meadow: Update for Meadow2.10.
* INSTALL.Meadow.ja: Ditto.

* README.Meadow.ja: Update.
* README.Meadow: Ditto.

* makefile.meadow.w32-in: Do not mkdir lock, data.
Do not install Meadow.plan.

Line 
1 #  Makefile for GNU Emacs on the Microsoft W32 API.
2 #  Copyright (c) 2000-2001 Free Software Foundation, Inc.
3 #
4 #  Top level makefile for building GNU Emacs on Windows NT
5 #
6 #  This file is part of GNU Emacs.
7
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
10 #  the Free Software Foundation; either version 2, or (at your option)
11 #  any later version.
12
13 #  GNU Emacs is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17
18 #  You should have received a copy of the GNU General Public License
19 #  along with GNU Emacs; see the file COPYING.  If not, write to
20 #  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 #  Boston, MA 02111-1307, USA.
22
23 ALL             = RunMW32 install_exe cmdproxy fiber
24
25 .PHONY: $(ALL)
26
27 TRES            = $(BLD)/meadow.res
28
29 install_exe:    $(BLD) $(BLD)/install.exe
30 $(BLD)/install.exe: $(BLD)/install.$(O)
31                 $(LINK) $(LINK_OUT)$@ \
32                 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
33
34 fiber:          $(BLD) $(BLD)/fiber.exe
35 $(BLD)/fiber.exe: $(BLD)/fiber.$(O)
36                 $(LINK) $(LINK_OUT)$@ \
37                 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
38
39 RunMW32:        $(BLD) $(BLD)/RunMW32.exe
40 $(BLD)/RunMW32.exe: $(BLD)/RunMW32.$(O) $(TRES)
41                 $(LINK) -mwindows $(LINK_OUT)$@ \
42                 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
43
44 cmdproxy:         $(BLD) $(BLD)/cmdproxy.exe
45 $(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O)
46                   $(LINK) $(LINK_OUT)$@ \
47                   $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
48
49 #
50 # The resource file.  NT 3.10 requires the use of cvtres; even though
51 # it is not necessary on later versions, it is still ok to use it.
52 #
53 $(TRES):        meadow.rc
54                 $(RC) $(RC_OUT)$(BLD)/meadow.res $(ALL_DEPS)
55
56 which-sh:
57         @echo Using $(THE_SHELL) as shell.
58
59 #
60 # Build emacs
61 #
62 all:    which-sh $(BLD) $(ALL) all-other-dirs-$(MAKETYPE)
63
64 all-other-dirs-nmake:
65         cd ..\lib-src
66         $(MAKE) $(MFLAGS) all
67         cd ..\src
68         $(MAKE) $(MFLAGS) all
69         cd ..\lisp
70         $(MAKE) $(MFLAGS) all
71         cd ..\leim
72         $(MAKE) $(MFLAGS) all
73         cd ..\nt
74
75 all-other-dirs-gmake:
76         $(MAKE) $(MFLAGS) -C ../lib-src all
77         $(MAKE) $(MFLAGS) -C ../src all
78         $(MAKE) $(MFLAGS) -C ../lisp all
79         $(MAKE) $(MFLAGS) -C ../leim all
80
81 recompile:      recompile-$(MAKETYPE)
82
83 recompile-nmake:
84         cd ..\lisp
85         $(MAKE) $(MFLAGS) recompile
86         cd ..\nt
87
88 recompile-gmake:
89         $(MAKE) $(MFLAGS) -C ../lisp recompile
90
91 bootstrap:      $(BLD) $(ALL) bootstrap-$(MAKETYPE)
92
93 bootstrap-nmake:
94         cd ..\src
95         $(MAKE) $(MFLAGS) bootstrap
96         $(MAKE) $(MFLAGS) bootstrap-clean
97         cd ..\lisp
98         $(MAKE) $(MFLAGS) bootstrap
99         cd ..\nt
100
101 bootstrap-gmake:
102         $(MAKE) $(MFLAGS) -C ../src bootstrap
103         $(MAKE) $(MFLAGS) -C ../src bootstrap-clean
104         $(MAKE) $(MFLAGS) -C ../lisp bootstrap
105
106 bootstrap-clean: bootstrap-clean-$(MAKETYPE)
107
108 bootstrap-clean-nmake:
109         cd ..\src
110         $(MAKE) $(MFLAGS) bootstrap-clean
111         cd ..\lisp
112         $(MAKE) $(MFLAGS) bootstrap-clean
113
114 bootstrap-clean-gmake:
115         $(MAKE) $(MFLAGS) -C ../src bootstrap-clean
116         $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean
117
118 Meadow.bat: Meadow.bat.in
119         echo @echo off > $@
120         echo REM !!! Warning: This file automatically generated !!! >> $@
121         echo set "emacs_dir=$(INSTALL_DIR_M_DOS)" >> $@
122         echo set "EMACSLOADPATH=$(INSTALL_DIR_M_DOS)\site-lisp\;$(INSTALL_DIR_DOS)\site-lisp\;$(INSTALL_DIR_M_DOS)\lisp" >> $@
123         cat $< >> $@
124
125 $(INSTALL_DIR):
126         - mkdir -p "$(INSTALL_DIR)"
127
128 $(INSTALL_DIR_M):
129         - mkdir -p "$(INSTALL_DIR_M)"
130
131 $(INSTALL_DIR_M)/bin: $(INSTALL_DIR_M)
132         - mkdir -p "$(INSTALL_DIR_M)/bin"
133
134 #
135 # Build and install emacs in INSTALL_DIR_M
136 #
137 install: all $(INSTALL_DIR_M)/bin install-other-dirs-$(MAKETYPE) Meadow.bat
138 ifndef MEADOW
139         - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR_M)/bin
140         - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR_M)/bin
141 endif
142         - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR_M)/bin
143 ifndef MEADOW
144         - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR_M)/bin
145         - $(CP) ../lib-src/fns-*.el $(INSTALL_DIR_M)/bin
146         - "$(INSTALL_DIR_M)/bin/addpm" /q
147 endif
148         - $(DEL) ../same-dir.tst
149         - $(DEL) $(INSTALL_DIR_M)/same-dir.tst
150         echo SameDirTest > "$(INSTALL_DIR_M)/same-dir.tst"
151         - mkdir -p "$(INSTALL_DIR_M)/etc"
152         - mkdir -p "$(INSTALL_DIR_M)/info"
153 #       - mkdir -p "$(INSTALL_DIR_M)/lock"
154 #       - mkdir -p "$(INSTALL_DIR_M)/data"
155         - mkdir -p "$(INSTALL_DIR_M)/site-lisp"
156         - mkdir -p "$(INSTALL_DIR_M)/etc/icons"
157         $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR_M)/site-lisp $(ENDIF)
158         $(IFNOTSAMEDIR) $(CP_DIR) "..\etc" "$(INSTALL_DIR_M_DOS)\etc" $(ENDIF)
159         - $(CP_DIR) icons "$(INSTALL_DIR_M_DOS)\etc\icons"
160         $(IFNOTSAMEDIR) $(CP_DIR) "..\info" "$(INSTALL_DIR_M_DOS)\info" $(ENDIF)
161 ifdef MEADOW
162                 - $(CP) README.Meadow $(INSTALL_DIR)
163                 - $(CP) INSTALL.Meadow $(INSTALL_DIR)
164                 - $(CP) README.Meadow.ja $(INSTALL_DIR)
165                 - $(CP) INSTALL.Meadow.ja $(INSTALL_DIR)
166 #               - $(CP) Meadow.plan $(INSTALL_DIR)
167                 - $(CP) dot.emacs.ja $(INSTALL_DIR)
168                 - $(CP) fiber.txt $(INSTALL_DIR_M)/bin
169                 - $(CP) Meadow.bat $(INSTALL_DIR_M)/bin
170                 - $(CP) dump.bat $(INSTALL_DIR_M)/bin
171 #               - $(CP) debug.bat $(INSTALL_DIR_M)/bin
172 #               - $(CP) ../lib-src/fns-*.el $(INSTALL_DIR_M)/bin
173                 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR_M)/bin
174                 - $(CP) $(BLD)/RunMW32.exe $(INSTALL_DIR_M)/bin
175                 - $(CP) meadow.ico $(INSTALL_DIR_M)/bin
176                 - $(CP) $(BLD)/install.exe $(INSTALL_DIR_M)
177                 - $(CP) $(BLD)/fiber.exe $(INSTALL_DIR_M)/bin
178                 - mkdir -p $(INSTALL_DIR)/site-lisp
179                 - $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp
180
181                 - mkdir -p "$(INSTALL_DIR_M)/bitmap"
182                 $(IFNOTSAMEDIR) $(CP_DIR) bitmap "$(INSTALL_DIR_M_DOS)\bitmap" $(ENDIF)
183
184 endif
185         - $(DEL) ../same-dir.tst
186         - $(DEL) $(INSTALL_DIR_M)/same-dir.tst
187
188 install-other-dirs-nmake:
189         cd ..\lib-src
190         $(MAKE) $(MFLAGS) install
191         cd ..\src
192         $(MAKE) $(MFLAGS) install
193         cd ..\lisp
194         $(MAKE) $(MFLAGS) install
195         cd ..\leim
196         $(MAKE) $(MFLAGS) install
197         cd ..\nt
198
199 install-other-dirs-gmake:
200         $(MAKE) $(MFLAGS) -C ../lib-src install
201         $(MAKE) $(MFLAGS) -C ../src install
202         $(MAKE) $(MFLAGS) -C ../lisp install
203         $(MAKE) $(MFLAGS) -C ../leim install
204
205 #
206 # Maintenance
207 #
208 clean:  clean-other-dirs-$(MAKETYPE)
209         - $(DEL) *~ $(COMPILER_TEMP_FILES)
210         - $(DEL_TREE) $(OBJDIR)
211         - $(DEL) ../etc/DOC ../etc/DOC-X
212         - $(DEL) Meadow.bat
213         - $(DEL) debug.bat
214
215 clean-other-dirs-nmake:
216         cd ..\lib-src
217         $(MAKE) $(MFLAGS) clean
218         cd ..\src
219         $(MAKE) $(MFLAGS) clean
220         cd ..\lisp
221         $(MAKE) $(MFLAGS) clean
222         cd ..\leim
223         $(MAKE) $(MFLAGS) clean
224         cd ..\nt
225
226 clean-other-dirs-gmake:
227         $(MAKE) $(MFLAGS) -C ../lib-src clean
228         $(MAKE) $(MFLAGS) -C ../src clean
229         $(MAKE) $(MFLAGS) -C ../lisp clean
230         $(MAKE) $(MFLAGS) -C ../leim clean
231
232 cleanall-other-dirs-nmake:
233         cd ..\lib-src
234         $(MAKE) $(MFLAGS) cleanall
235         cd ..\src
236         $(MAKE) $(MFLAGS) cleanall
237         cd ..\nt
238
239 cleanall-other-dirs-gmake:
240         $(MAKE) $(MFLAGS) -C ../lib-src cleanall
241         $(MAKE) $(MFLAGS) -C ../src cleanall
242
243 cleanall: clean cleanall-other-dirs-$(MAKETYPE)
244          - $(DEL_TREE) obj
245          - $(DEL_TREE) obj-spd
246          - $(DEL_TREE) oo
247          - $(DEL_TREE) oo-spd
248
249 realclean: cleanall
250         - $(DEL_TREE) ../bin
251 #
252 # Documentation
253 #
254 SDOC=sdoc
255 DOCS = Meadow-Manual.html Meadow-Manual_ja.html
256
257 $(DOCS): Meadow-Manual.sdoc
258         $(SDOC) -toc "-locale:ja,en" -masterLocale:en $?
259
260 doc: $(DOCS)
Note: See TracBrowser for help on using the browser.