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