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