Mercurial > emacs
comparison msdos/mainmake.v2 @ 97668:eefd6603dc56
(emacs lispref lispintro): Chdir under doc/.
(emacs): Renamed from `man', to reflect changes in doc directory structure.
All callers changed.
(clean mostlyclean distclean maintainer-clean extraclean): Chdir into doc/
for manuals. Add misc subdirectory.
(src): Pass an empty BOOTSTRAPEMACS variable to src/Makefile.
(install): Don't stubify/stubedit emacs.exe, this is now done by src/Makefile.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 23 Aug 2008 17:02:59 +0000 |
parents | fa41f74280f5 |
children | 322d1a27ea4a |
comparison
equal
deleted
inserted
replaced
97667:898ab684db68 | 97668:eefd6603dc56 |
---|---|
65 top_srcdir := $(subst \,/,$(shell cd)) | 65 top_srcdir := $(subst \,/,$(shell cd)) |
66 | 66 |
67 # Find out which version of Emacs this is. | 67 # Find out which version of Emacs this is. |
68 version := ${shell sed -n -e '/(defconst emacs-version/s/^[^"]*\("[^"]*"\).*/\1/p' lisp/version.el} | 68 version := ${shell sed -n -e '/(defconst emacs-version/s/^[^"]*\("[^"]*"\).*/\1/p' lisp/version.el} |
69 | 69 |
70 all: maybe_bootstrap lib-src src man lispref lispintro | 70 all: maybe_bootstrap lib-src src emacs lispref lispintro |
71 | 71 |
72 lib-src: FRC | 72 lib-src: FRC |
73 cd lib-src | 73 cd lib-src |
74 $(MAKE) top_srcdir=${top_srcdir} version=${version} | 74 $(MAKE) top_srcdir=${top_srcdir} version=${version} |
75 cd .. | 75 cd .. |
76 | 76 |
77 src: FRC | 77 src: FRC |
78 cd src | 78 cd src |
79 $(MAKE) top_srcdir=${top_srcdir} | 79 $(MAKE) top_srcdir=${top_srcdir} BOOTSTRAPEMACS="" |
80 djecho -s '/-geometry/s,^.*,set environment HOME $(top_srcdir),' \ | 80 djecho -s '/-geometry/s,^.*,set environment HOME $(top_srcdir),' \ |
81 '/environment *TERM/s/^.*/set environment TERM internal/' \ | 81 '/environment *TERM/s/^.*/set environment TERM internal/' \ |
82 '/x_error_quitter/s/^.*/set environment NAME root/' >gdb.sed | 82 '/x_error_quitter/s/^.*/set environment NAME root/' >gdb.sed |
83 sed -f gdb.sed _gdbinit >gdb.tmp | 83 sed -f gdb.sed _gdbinit >gdb.tmp |
84 djecho -a gdb.tmp -s 'set environment USER root' \ | 84 djecho -a gdb.tmp -s 'set environment USER root' \ |
88 update gdb.tmp gdb.ini | 88 update gdb.tmp gdb.ini |
89 rm -f gdb.tmp gdb.sed | 89 rm -f gdb.tmp gdb.sed |
90 cd .. | 90 cd .. |
91 if exist leim\Makefile redir $(MAKE) -C leim top_srcdir=${top_srcdir} | 91 if exist leim\Makefile redir $(MAKE) -C leim top_srcdir=${top_srcdir} |
92 | 92 |
93 man lispref lispintro: FRC | 93 emacs lispref lispintro: FRC |
94 cd $@ | 94 cd doc/$@ |
95 $(MAKE) top_srcdir=${top_srcdir} info | 95 $(MAKE) top_srcdir=${top_srcdir} info |
96 cd .. | 96 cd ../.. |
97 | 97 |
98 install: all | 98 install: all |
99 if not exist bin\nul md bin | 99 if not exist bin\nul md bin |
100 cd lib-src | 100 cd lib-src |
101 command.com /c >/dev/null for %p in (hexl etags ctags b2m ebrowse) do\ | 101 command.com /c >/dev/null for %p in (hexl etags ctags b2m ebrowse) do\ |
102 if exist %p.exe mv -f %p.exe ../bin | 102 if exist %p.exe mv -f %p.exe ../bin |
103 if exist fns.el update fns.el ../bin/fns.el | 103 if exist fns.el update fns.el ../bin/fns.el |
104 cd .. | 104 cd .. |
105 cd src | 105 cd src |
106 stubify emacs | |
107 stubedit emacs.exe minstack=512k | |
108 mv -f emacs.exe ../bin/ | 106 mv -f emacs.exe ../bin/ |
109 cd .. | 107 cd .. |
110 djecho -s "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)" \ | 108 djecho -s "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)" \ |
111 " (normal-top-level-add-subdirs-to-load-path))" \ | 109 " (normal-top-level-add-subdirs-to-load-path))" \ |
112 > ./subdirs.el | 110 > ./subdirs.el |
142 $(MAKE) $(MFLAGS) $@ | 140 $(MAKE) $(MFLAGS) $@ |
143 cd .. | 141 cd .. |
144 cd oldxmenu | 142 cd oldxmenu |
145 -$(MAKE) $(MFLAGS) $@ | 143 -$(MAKE) $(MFLAGS) $@ |
146 cd .. | 144 cd .. |
147 cd man | 145 cd doc |
146 cd emacs | |
147 -$(MAKE) $(MFLAGS) $@ | |
148 cd .. | |
149 cd misc | |
148 -$(MAKE) $(MFLAGS) $@ | 150 -$(MAKE) $(MFLAGS) $@ |
149 cd .. | 151 cd .. |
150 cd lispref | 152 cd lispref |
151 -$(MAKE) $(MFLAGS) $@ | 153 -$(MAKE) $(MFLAGS) $@ |
152 cd .. | 154 cd .. |
153 cd lispintro | 155 cd lispintro |
154 -$(MAKE) $(MFLAGS) $@ | 156 -$(MAKE) $(MFLAGS) $@ |
157 cd .. | |
155 cd .. | 158 cd .. |
156 cd leim | 159 cd leim |
157 if exist Makefile redir $(MAKE) $(MFLAGS) $@ | 160 if exist Makefile redir $(MAKE) $(MFLAGS) $@ |
158 cd .. | 161 cd .. |
159 -$(MAKE) $(MFLAGS) $@ | 162 -$(MAKE) $(MFLAGS) $@ |
168 -$(MAKE) $(MFLAGS) $@ | 171 -$(MAKE) $(MFLAGS) $@ |
169 cd .. | 172 cd .. |
170 cd lib-src | 173 cd lib-src |
171 $(MAKE) $(MFLAGS) $@ | 174 $(MAKE) $(MFLAGS) $@ |
172 cd .. | 175 cd .. |
173 cd man | 176 cd doc |
177 cd emacs | |
178 -$(MAKE) $(MFLAGS) $@ | |
179 cd .. | |
180 cd misc | |
174 -$(MAKE) $(MFLAGS) $@ | 181 -$(MAKE) $(MFLAGS) $@ |
175 cd .. | 182 cd .. |
176 cd lispref | 183 cd lispref |
177 -$(MAKE) $(MFLAGS) $@ | 184 -$(MAKE) $(MFLAGS) $@ |
178 cd .. | 185 cd .. |
179 cd lispintro | 186 cd lispintro |
180 -$(MAKE) $(MFLAGS) $@ | 187 -$(MAKE) $(MFLAGS) $@ |
188 cd .. | |
181 cd .. | 189 cd .. |
182 cd leim | 190 cd leim |
183 if exist Makefile redir $(MAKE) $(MFLAGS) $@ | 191 if exist Makefile redir $(MAKE) $(MFLAGS) $@ |
184 cd .. | 192 cd .. |
185 cd lisp | 193 cd lisp |
195 -$(MAKE) $(MFLAGS) $@ | 203 -$(MAKE) $(MFLAGS) $@ |
196 cd .. | 204 cd .. |
197 cd lib-src | 205 cd lib-src |
198 $(MAKE) $(MFLAGS) $@ | 206 $(MAKE) $(MFLAGS) $@ |
199 cd .. | 207 cd .. |
200 cd man | 208 cd doc |
209 cd emacs | |
210 -$(MAKE) $(MFLAGS) $@ | |
211 cd .. | |
212 cd misc | |
201 -$(MAKE) $(MFLAGS) $@ | 213 -$(MAKE) $(MFLAGS) $@ |
202 cd .. | 214 cd .. |
203 cd lispref | 215 cd lispref |
204 -$(MAKE) $(MFLAGS) $@ | 216 -$(MAKE) $(MFLAGS) $@ |
205 cd .. | 217 cd .. |
206 cd lispintro | 218 cd lispintro |
207 -$(MAKE) $(MFLAGS) $@ | 219 -$(MAKE) $(MFLAGS) $@ |
220 cd .. | |
208 cd .. | 221 cd .. |
209 cd leim | 222 cd leim |
210 if exist Makefile redir $(MAKE) $(MFLAGS) $@ | 223 if exist Makefile redir $(MAKE) $(MFLAGS) $@ |
211 cd .. | 224 cd .. |
212 cd lisp | 225 cd lisp |
240 | 253 |
241 ### Used for `bootstrap' to avoid deleting existing dumped Emacs executables. | 254 ### Used for `bootstrap' to avoid deleting existing dumped Emacs executables. |
242 bootstrap-clean-before: FRC | 255 bootstrap-clean-before: FRC |
243 cd src; $(MAKE) $(MFLAGS) mostlyclean; cd .. | 256 cd src; $(MAKE) $(MFLAGS) mostlyclean; cd .. |
244 cd lib-src; $(MAKE) $(MFLAGS) clean; cd .. | 257 cd lib-src; $(MAKE) $(MFLAGS) clean; cd .. |
245 -cd man; $(MAKE) $(MFLAGS) clean; cd .. | 258 -cd doc/emacs; $(MAKE) $(MFLAGS) clean; cd .. |
259 -cd misc; $(MAKE) $(MFLAGS) clean; cd .. | |
246 -cd lispref; $(MAKE) $(MFLAGS) clean; cd .. | 260 -cd lispref; $(MAKE) $(MFLAGS) clean; cd .. |
247 -cd lispintro; $(MAKE) $(MFLAGS) clean; cd .. | 261 -cd lispintro; $(MAKE) $(MFLAGS) clean; cd ..; cd .. |
248 cd leim; if exist Makefile redir $(MAKE) $(MFLAGS) clean; cd .. | 262 cd leim; if exist Makefile redir $(MAKE) $(MFLAGS) clean; cd .. |
249 | 263 |
250 bootstrap-clean-after: | 264 bootstrap-clean-after: |
251 cd src; $(MAKE) $(MFLAGS) mostlyclean; cd .. | 265 cd src; $(MAKE) $(MFLAGS) mostlyclean; cd .. |
252 | 266 |