428
|
1 # Makefile for man subdirectory in XEmacs
|
|
2 # Copyright (C) 1995 Board of Trustees, University of Illinois
|
|
3 # Copyright (C) 1994, 1995 Sun Microsystems.
|
3062
|
4 # Copyright (C) 2005 Ben Wing.
|
428
|
5
|
|
6 # This file is part of XEmacs.
|
|
7
|
|
8 # XEmacs is free software; you can redistribute it and/or modify it
|
|
9 # under the terms of the GNU General Public License as published by the
|
|
10 # Free Software Foundation; either version 2, or (at your option) any
|
|
11 # later version.
|
|
12
|
|
13 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
16 # for more details.
|
|
17
|
|
18 # You should have received a copy of the GNU General Public License
|
|
19 # along with XEmacs; 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 SHELL = /bin/sh
|
|
24 MAKEINFO = makeinfo
|
|
25 TEXI2DVI = texi2dvi
|
4195
|
26 TEXI2HTML = texi2html
|
4196
|
27 TEXI2HTML_NOSPLIT = $(TEXI2HTML) -verbose -subdir $(HTMLDIR)
|
4195
|
28 TEXI2HTML_SPLIT = $(TEXI2HTML) -verbose -subdir $(HTMLDIR) -split chapter
|
677
|
29
|
442
|
30 RM = rm -f
|
2418
|
31 CP = cp
|
428
|
32
|
|
33 .SUFFIXES:
|
1702
|
34 .SUFFIXES: .html .info .texi .dvi .pdf
|
428
|
35
|
2427
|
36 RECURSIVE_MAKE_ARGS = $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
|
428
|
37
|
|
38 all : info
|
|
39
|
|
40 # Ughhh! The things we do to have portable makefiles...
|
|
41
|
|
42 INFODIR = ../info
|
677
|
43 HTMLDIR = ../html
|
2418
|
44 PHOTODIR = ../etc/photos
|
428
|
45
|
|
46 info_files = \
|
2537
|
47 $(INFODIR)/beta.info \
|
428
|
48 $(INFODIR)/cl.info \
|
|
49 $(INFODIR)/custom.info \
|
|
50 $(INFODIR)/emodules.info \
|
|
51 $(INFODIR)/external-widget.info \
|
|
52 $(INFODIR)/info.info \
|
4225
|
53 $(INFODIR)/internals.info \
|
428
|
54 $(INFODIR)/lispref.info \
|
|
55 $(INFODIR)/new-users-guide.info \
|
|
56 $(INFODIR)/standards.info \
|
|
57 $(INFODIR)/termcap.info \
|
|
58 $(INFODIR)/texinfo.info \
|
|
59 $(INFODIR)/widget.info \
|
4225
|
60 $(INFODIR)/xemacs-faq.info \
|
|
61 $(INFODIR)/xemacs.info
|
428
|
62
|
677
|
63 html_files = \
|
2537
|
64 $(HTMLDIR)/beta.html \
|
677
|
65 $(HTMLDIR)/cl.html \
|
|
66 $(HTMLDIR)/custom.html \
|
|
67 $(HTMLDIR)/emodules.html \
|
|
68 $(HTMLDIR)/external-widget.html \
|
|
69 $(HTMLDIR)/info.html \
|
|
70 $(HTMLDIR)/lispref.html \
|
|
71 $(HTMLDIR)/internals.html \
|
|
72 $(HTMLDIR)/new-users-guide.html \
|
|
73 $(HTMLDIR)/standards.html \
|
|
74 $(HTMLDIR)/termcap.html \
|
|
75 $(HTMLDIR)/texinfo.html \
|
|
76 $(HTMLDIR)/widget.html \
|
|
77 $(HTMLDIR)/xemacs.html \
|
|
78 $(HTMLDIR)/xemacs-faq.html
|
|
79
|
428
|
80 dvi_files = \
|
2537
|
81 beta.dvi \
|
428
|
82 cl.dvi \
|
|
83 custom.dvi \
|
|
84 emodules.dvi \
|
|
85 external-widget.dvi \
|
|
86 info.dvi \
|
|
87 lispref.dvi \
|
|
88 internals.dvi \
|
|
89 new-users-guide.dvi \
|
|
90 standards.dvi \
|
|
91 termcap.dvi \
|
|
92 texinfo.dvi \
|
|
93 widget.dvi \
|
|
94 xemacs.dvi \
|
|
95 xemacs-faq.dvi
|
|
96
|
1702
|
97 pdf_files = \
|
2537
|
98 beta.pdf \
|
1702
|
99 cl.pdf \
|
|
100 custom.pdf \
|
|
101 emodules.pdf \
|
|
102 external-widget.pdf \
|
|
103 info.pdf \
|
|
104 lispref.pdf \
|
|
105 internals.pdf \
|
|
106 new-users-guide.pdf \
|
|
107 standards.pdf \
|
|
108 termcap.pdf \
|
|
109 texinfo.pdf \
|
|
110 widget.pdf \
|
|
111 xemacs.pdf \
|
|
112 xemacs-faq.pdf
|
|
113
|
428
|
114 xemacs-srcs = \
|
|
115 xemacs/abbrevs.texi \
|
|
116 xemacs/basic.texi \
|
|
117 xemacs/buffers.texi \
|
|
118 xemacs/building.texi \
|
|
119 xemacs/calendar.texi \
|
|
120 xemacs/cmdargs.texi \
|
|
121 xemacs/custom.texi \
|
|
122 xemacs/display.texi \
|
|
123 xemacs/entering.texi \
|
|
124 xemacs/files.texi \
|
|
125 xemacs/fixit.texi \
|
|
126 xemacs/frame.texi \
|
|
127 xemacs/glossary.texi \
|
|
128 xemacs/gnu.texi \
|
|
129 xemacs/help.texi \
|
|
130 xemacs/indent.texi \
|
|
131 xemacs/keystrokes.texi \
|
|
132 xemacs/killing.texi \
|
|
133 xemacs/m-x.texi \
|
|
134 xemacs/major.texi \
|
|
135 xemacs/mark.texi \
|
|
136 xemacs/menus.texi \
|
|
137 xemacs/mini.texi \
|
|
138 xemacs/misc.texi \
|
|
139 xemacs/mouse.texi \
|
|
140 xemacs/mule.texi \
|
|
141 xemacs/new.texi \
|
|
142 xemacs/packages.texi \
|
|
143 xemacs/picture.texi \
|
|
144 xemacs/programs.texi \
|
|
145 xemacs/reading.texi \
|
|
146 xemacs/regs.texi \
|
|
147 xemacs/search.texi \
|
|
148 xemacs/sending.texi \
|
|
149 xemacs/startup.texi \
|
|
150 xemacs/text.texi \
|
|
151 xemacs/trouble.texi \
|
|
152 xemacs/undo.texi \
|
|
153 xemacs/windows.texi \
|
|
154 xemacs/xemacs.texi
|
|
155
|
|
156 lispref-srcs = \
|
|
157 lispref/abbrevs.texi \
|
|
158 lispref/annotations.texi \
|
|
159 lispref/back.texi \
|
|
160 lispref/backups.texi \
|
|
161 lispref/buffers.texi \
|
|
162 lispref/building.texi \
|
|
163 lispref/commands.texi \
|
|
164 lispref/compile.texi \
|
|
165 lispref/consoles-devices.texi \
|
|
166 lispref/control.texi \
|
|
167 lispref/customize.texi \
|
|
168 lispref/databases.texi \
|
|
169 lispref/debugging.texi \
|
|
170 lispref/dialog.texi \
|
|
171 lispref/display.texi \
|
|
172 lispref/dragndrop.texi \
|
|
173 lispref/edebug-inc.texi \
|
|
174 lispref/edebug.texi \
|
|
175 lispref/errors.texi \
|
|
176 lispref/eval.texi \
|
|
177 lispref/extents.texi \
|
|
178 lispref/faces.texi \
|
|
179 lispref/files.texi \
|
|
180 lispref/frames.texi \
|
|
181 lispref/functions.texi \
|
|
182 lispref/glyphs.texi \
|
|
183 lispref/hash-tables.texi \
|
|
184 lispref/help.texi \
|
|
185 lispref/hooks.texi \
|
|
186 lispref/index.texi \
|
|
187 lispref/internationalization.texi \
|
|
188 lispref/intro.texi \
|
|
189 lispref/keymaps.texi \
|
|
190 lispref/ldap.texi \
|
|
191 lispref/lispref.texi \
|
|
192 lispref/lists.texi \
|
|
193 lispref/loading.texi \
|
|
194 lispref/locals.texi \
|
|
195 lispref/macros.texi \
|
|
196 lispref/maps.texi \
|
|
197 lispref/markers.texi \
|
|
198 lispref/menus.texi \
|
|
199 lispref/minibuf.texi \
|
|
200 lispref/modes.texi \
|
|
201 lispref/mouse.texi \
|
|
202 lispref/mule.texi \
|
|
203 lispref/numbers.texi \
|
|
204 lispref/objects.texi \
|
|
205 lispref/os.texi \
|
693
|
206 lispref/packaging.texi \
|
428
|
207 lispref/positions.texi \
|
|
208 lispref/processes.texi \
|
|
209 lispref/range-tables.texi \
|
|
210 lispref/scrollbars.texi \
|
|
211 lispref/searching.texi \
|
|
212 lispref/sequences.texi \
|
|
213 lispref/specifiers.texi \
|
|
214 lispref/streams.texi \
|
|
215 lispref/strings.texi \
|
|
216 lispref/symbols.texi \
|
|
217 lispref/syntax.texi \
|
|
218 lispref/text.texi \
|
|
219 lispref/tips.texi \
|
|
220 lispref/toolbar.texi \
|
|
221 lispref/tooltalk.texi \
|
|
222 lispref/variables.texi \
|
|
223 lispref/windows.texi \
|
|
224 lispref/x-windows.texi
|
|
225
|
|
226 internals-srcs = \
|
|
227 internals/internals.texi
|
|
228
|
|
229 new-users-guide-srcs = \
|
|
230 new-users-guide/custom1.texi \
|
|
231 new-users-guide/custom2.texi \
|
|
232 new-users-guide/edit.texi \
|
|
233 new-users-guide/enter.texi \
|
|
234 new-users-guide/files.texi \
|
|
235 new-users-guide/help.texi \
|
|
236 new-users-guide/modes.texi \
|
|
237 new-users-guide/new-users-guide.texi \
|
|
238 new-users-guide/region.texi \
|
|
239 new-users-guide/search.texi \
|
|
240 new-users-guide/xmenu.texi
|
|
241
|
2537
|
242 $(INFODIR)/beta.info : beta.texi
|
|
243 $(MAKEINFO) -o $(INFODIR)/beta.info beta.texi
|
|
244
|
428
|
245 $(INFODIR)/cl.info : cl.texi
|
|
246 $(MAKEINFO) -o $(INFODIR)/cl.info cl.texi
|
|
247
|
|
248 $(INFODIR)/custom.info : custom.texi
|
|
249 $(MAKEINFO) -o $(INFODIR)/custom.info custom.texi
|
|
250
|
|
251 $(INFODIR)/emodules.info : emodules.texi
|
|
252 $(MAKEINFO) -o $(INFODIR)/emodules.info emodules.texi
|
|
253
|
|
254 $(INFODIR)/external-widget.info : external-widget.texi
|
|
255 $(MAKEINFO) -o $(INFODIR)/external-widget.info external-widget.texi
|
|
256
|
|
257 $(INFODIR)/info.info : info.texi
|
|
258 $(MAKEINFO) -o $(INFODIR)/info.info info.texi
|
|
259
|
|
260 $(INFODIR)/standards.info : standards.texi
|
|
261 $(MAKEINFO) -o $(INFODIR)/standards.info standards.texi
|
|
262
|
|
263 $(INFODIR)/termcap.info : termcap.texi
|
|
264 $(MAKEINFO) -o $(INFODIR)/termcap.info termcap.texi
|
|
265
|
|
266 $(INFODIR)/texinfo.info : texinfo.texi
|
|
267 $(MAKEINFO) -o $(INFODIR)/texinfo.info texinfo.texi
|
|
268
|
|
269 $(INFODIR)/widget.info : widget.texi
|
|
270 $(MAKEINFO) -o $(INFODIR)/widget.info widget.texi
|
|
271
|
|
272 $(INFODIR)/xemacs-faq.info : xemacs-faq.texi
|
|
273 $(MAKEINFO) -o $(INFODIR)/xemacs-faq.info xemacs-faq.texi
|
|
274
|
|
275 # Manuals with their own subdirectory
|
|
276 $(INFODIR)/xemacs.info : $(xemacs-srcs)
|
|
277 $(MAKEINFO) -P xemacs -o $(INFODIR)/xemacs.info xemacs/xemacs.texi
|
|
278
|
|
279 $(INFODIR)/lispref.info : $(lispref-srcs)
|
|
280 $(MAKEINFO) -P lispref -o $(INFODIR)/lispref.info lispref/lispref.texi
|
|
281
|
|
282 $(INFODIR)/internals.info : $(internals-srcs)
|
|
283 $(MAKEINFO) -P internals -o $(INFODIR)/internals.info internals/internals.texi
|
|
284
|
|
285 $(INFODIR)/new-users-guide.info : $(new-users-guide-srcs)
|
|
286 $(MAKEINFO) -P new-users-guide -o $(INFODIR)/new-users-guide.info new-users-guide/new-users-guide.texi
|
|
287
|
|
288 xemacs : $(INFODIR)/xemacs.info
|
|
289 lispref : $(INFODIR)/lispref.info
|
|
290 internals : $(INFODIR)/internals.info
|
|
291 new-users-guide.info : $(INFODIR)/new-users-guide.info
|
|
292
|
1702
|
293 .PHONY : xemacs lispref internals new-users-guide info dvi pdf
|
428
|
294
|
|
295 info : $(info_files)
|
677
|
296 html : $(html_files)
|
428
|
297
|
|
298 .texi.dvi:
|
|
299 -$(TEXI2DVI) $<
|
|
300
|
1702
|
301 .texi.pdf:
|
|
302 -$(TEXI2DVI) --pdf $<
|
|
303
|
428
|
304 xemacs.dvi : $(xemacs-srcs)
|
|
305 $(TEXI2DVI) -I xemacs xemacs/xemacs.texi
|
|
306
|
|
307 lispref.dvi : $(lispref-srcs)
|
|
308 $(TEXI2DVI) -I lispref lispref/lispref.texi
|
|
309
|
|
310 internals.dvi : $(internals-srcs)
|
|
311 $(TEXI2DVI) -I internals internals/internals.texi
|
|
312
|
|
313 new-users-guide.dvi : $(new-users-guide-srcs)
|
|
314 $(TEXI2DVI) -I new-users-guide new-users-guide/new-users-guide.texi
|
|
315
|
|
316 dvi : $(dvi_files)
|
|
317
|
1702
|
318 xemacs.pdf: $(xemacs-srcs)
|
|
319 $(TEXI2DVI) --pdf -I xemacs xemacs/xemacs.texi
|
|
320
|
|
321 lispref.pdf: $(lispref-srcs)
|
|
322 $(TEXI2DVI) --pdf -I lispref lispref/lispref.texi
|
|
323
|
|
324 internals.pdf: $(internals-srcs)
|
|
325 $(TEXI2DVI) --pdf -I internals internals/internals.texi
|
|
326
|
|
327 new-users-guide.pdf: $(new-users-guide-srcs)
|
|
328 $(TEXI2DVI) --pdf -I new-users-guide new-users-guide/new-users-guide.texi
|
|
329
|
|
330 pdf: $(pdf_files)
|
|
331
|
428
|
332 .PHONY: mostlyclean clean distclean realclean extraclean
|
3062
|
333 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig
|
428
|
334 mostlyclean:
|
442
|
335 $(RM) *.toc *.aux *.log *.op *.cp *.cps *.fn *.fns
|
|
336 $(RM) *.ky *.kys *.pg *.pgs *.tp *.tps *.vr *.vrs
|
428
|
337 clean: mostlyclean
|
1702
|
338 $(RM) core *.dvi *.pdf
|
3062
|
339 distclean-noconfig: clean
|
|
340 distclean: distclean-noconfig
|
|
341 realclean-noconfig: distclean-noconfig
|
428
|
342 realclean: distclean
|
3062
|
343 extraclean-noconfig: realclean-noconfig
|
|
344 $(RM) *~ \#* */*~ */\#*
|
|
345 extraclean: realclean
|
442
|
346 $(RM) *~ \#* */*~ */\#*
|
677
|
347
|
|
348 ############################################################################
|
|
349
|
2537
|
350 $(HTMLDIR)/beta.html : beta.texi
|
4196
|
351 $(TEXI2HTML_NOSPLIT) beta.texi
|
2537
|
352
|
677
|
353 $(HTMLDIR)/cl.html : cl.texi
|
2418
|
354 $(TEXI2HTML_SPLIT) cl.texi
|
677
|
355
|
|
356 $(HTMLDIR)/custom.html : custom.texi
|
2418
|
357 $(TEXI2HTML_SPLIT) custom.texi
|
677
|
358
|
|
359 $(HTMLDIR)/emodules.html : emodules.texi
|
2418
|
360 $(TEXI2HTML_SPLIT) emodules.texi
|
677
|
361
|
|
362 $(HTMLDIR)/external-widget.html : external-widget.texi
|
2418
|
363 $(TEXI2HTML_SPLIT) external-widget.texi
|
677
|
364
|
|
365 $(HTMLDIR)/info.html : info.texi
|
2418
|
366 $(TEXI2HTML_SPLIT) info.texi
|
677
|
367
|
|
368 $(HTMLDIR)/standards.html : standards.texi
|
2418
|
369 $(TEXI2HTML_SPLIT) standards.texi
|
677
|
370
|
|
371 $(HTMLDIR)/termcap.html : termcap.texi
|
2418
|
372 $(TEXI2HTML_SPLIT) termcap.texi
|
677
|
373
|
|
374 $(HTMLDIR)/texinfo.html : texinfo.texi
|
2418
|
375 $(TEXI2HTML_SPLIT) texinfo.texi
|
677
|
376
|
|
377 $(HTMLDIR)/widget.html : widget.texi
|
2418
|
378 $(TEXI2HTML_SPLIT) widget.texi
|
677
|
379
|
|
380 $(HTMLDIR)/xemacs-faq.html : xemacs-faq.texi
|
4196
|
381 $(TEXI2HTML_NOSPLIT) xemacs-faq.texi
|
2418
|
382 $(TEXI2HTML_SPLIT) -top_file xemacs-faq_1.html xemacs-faq.texi
|
|
383 $(CP) $(PHOTODIR)/ben.png $(HTMLDIR)
|
|
384 $(CP) $(PHOTODIR)/cthomp.png $(HTMLDIR)
|
|
385 $(CP) $(PHOTODIR)/hniksic.png $(HTMLDIR)
|
|
386 $(CP) $(PHOTODIR)/jwz.png $(HTMLDIR)
|
|
387 $(CP) $(PHOTODIR)/martin.png $(HTMLDIR)
|
|
388 $(CP) $(PHOTODIR)/mly.png $(HTMLDIR)
|
|
389 $(CP) $(PHOTODIR)/piper.png $(HTMLDIR)
|
|
390 $(CP) $(PHOTODIR)/slb.png $(HTMLDIR)
|
677
|
391
|
|
392 # Manuals with their own subdirectory
|
|
393 $(HTMLDIR)/xemacs.html : $(xemacs-srcs)
|
2418
|
394 $(TEXI2HTML_SPLIT) xemacs/xemacs.texi
|
677
|
395
|
|
396 $(HTMLDIR)/lispref.html : $(lispref-srcs)
|
2418
|
397 $(TEXI2HTML_SPLIT) lispref/lispref.texi
|
677
|
398
|
|
399 $(HTMLDIR)/internals.html : $(internals-srcs)
|
2418
|
400 $(TEXI2HTML_SPLIT) internals/internals.texi
|
677
|
401
|
|
402 $(HTMLDIR)/new-users-guide.html : $(new-users-guide-srcs)
|
2418
|
403 $(TEXI2HTML_SPLIT) new-users-guide/new-users-guide.texi
|
677
|
404
|
|
405 xemacs : $(HTMLDIR)/xemacs.html
|
|
406 lispref : $(HTMLDIR)/lispref.html
|
|
407 internals : $(HTMLDIR)/internals.html
|
|
408 new-users-guide.html : $(HTMLDIR)/new-users-guide.html
|
|
409
|
|
410 html : $(html_files)
|