Initial git import
[sxemacs] / info / Makefile.obsolete
1 #  Makefile for man subdirectory in SXEmacs
2 #   Copyright (C) 1995 Board of Trustees, University of Illinois
3 #   Copyright (C) 1994, 1995 Sun Microsystems.
4
5 # This file is part of SXEmacs.
6
7 # SXEmacs 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 # SXEmacs 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 SXEmacs; 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
25 DVI2PS   = dvips
26 DVI2PDF  = dvipdf
27
28 RM = rm -f
29
30 .SUFFIXES:
31 .SUFFIXES: .info .texi .dvi
32
33 RECURSIVE_MAKE_ARGS = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
34
35 all : info
36
37 # Ughhh!  The things we do to have portable makefiles...
38
39 INFODIR = ../info
40 HTMLDIR = ../html
41
42 info_files = \
43         $(INFODIR)/cl.info \
44         $(INFODIR)/custom.info \
45         $(INFODIR)/emodules.info \
46         $(INFODIR)/external-widget.info \
47         $(INFODIR)/lispref.info \
48         $(INFODIR)/internals.info \
49         $(INFODIR)/new-users-guide.info \
50         $(INFODIR)/sppm.info \
51         $(INFODIR)/term.info \
52         $(INFODIR)/widget.info \
53         $(INFODIR)/sxemacs.info \
54         $(INFODIR)/sxemacs-faq.info
55
56 html_files = \
57         $(HTMLDIR)/cl.html \
58         $(HTMLDIR)/custom.html \
59         $(HTMLDIR)/emodules.html \
60         $(HTMLDIR)/external-widget.html \
61         $(HTMLDIR)/lispref.html \
62         $(HTMLDIR)/internals.html \
63         $(HTMLDIR)/new-users-guide.html \
64         $(HTMLDIR)/sppm.html \
65         $(HTMLDIR)/term.html \
66         $(HTMLDIR)/widget.html \
67         $(HTMLDIR)/sxemacs.html \
68         $(HTMLDIR)/sxemacs-faq.html
69
70 dvi_files = \
71         cl.dvi \
72         custom.dvi \
73         emodules.dvi \
74         external-widget.dvi \
75         lispref.dvi \
76         internals.dvi \
77         new-users-guide.dvi \
78         sppm.dvi \
79         term.dvi \
80         widget.dvi \
81         sxemacs.dvi \
82         sxemacs-faq.dvi
83
84 ps_files = \
85         cl.ps \
86         custom.ps \
87         emodules.ps \
88         external-widget.ps \
89         lispref.ps \
90         internals.ps \
91         new-users-guide.ps \
92         sppm.ps \
93         term.ps \
94         widget.ps \
95         sxemacs.ps \
96         sxemacs-faq.ps
97
98 pdf_files = \
99         cl.pdf \
100         custom.pdf \
101         emodules.pdf \
102         external-widget.pdf \
103         lispref.pdf \
104         internals.pdf \
105         new-users-guide.pdf \
106         sppm.pdf \
107         term.pdf \
108         widget.pdf \
109         sxemacs.pdf \
110         sxemacs-faq.pdf
111
112 sxemacs-srcs = \
113         sxemacs/abbrevs.texi \
114         sxemacs/basic.texi \
115         sxemacs/buffers.texi \
116         sxemacs/building.texi \
117         sxemacs/calendar.texi \
118         sxemacs/cmdargs.texi \
119         sxemacs/custom.texi \
120         sxemacs/display.texi \
121         sxemacs/entering.texi \
122         sxemacs/files.texi \
123         sxemacs/fixit.texi \
124         sxemacs/frame.texi \
125         sxemacs/glossary.texi \
126         sxemacs/help.texi \
127         sxemacs/indent.texi \
128         sxemacs/keystrokes.texi \
129         sxemacs/killing.texi \
130         sxemacs/m-x.texi \
131         sxemacs/major.texi \
132         sxemacs/mark.texi \
133         sxemacs/menus.texi \
134         sxemacs/mini.texi \
135         sxemacs/misc.texi \
136         sxemacs/mouse.texi \
137         sxemacs/mule.texi \
138         sxemacs/new.texi \
139         sxemacs/packages.texi \
140         sxemacs/picture.texi \
141         sxemacs/programs.texi \
142         sxemacs/reading.texi \
143         sxemacs/regs.texi \
144         sxemacs/search.texi \
145         sxemacs/sending.texi \
146         sxemacs/startup.texi \
147         sxemacs/text.texi \
148         sxemacs/trouble.texi \
149         sxemacs/undo.texi \
150         sxemacs/windows.texi \
151         sxemacs/sxemacs.texi
152
153 lispref-srcs = \
154         lispref/abbrevs.texi \
155         lispref/annotations.texi \
156         lispref/back.texi \
157         lispref/backups.texi \
158         lispref/buffers.texi \
159         lispref/building.texi \
160         lispref/commands.texi \
161         lispref/compile.texi \
162         lispref/consoles-devices.texi \
163         lispref/control.texi \
164         lispref/customize.texi \
165         lispref/databases.texi \
166         lispref/debugging.texi \
167         lispref/dialog.texi \
168         lispref/display.texi \
169         lispref/dragndrop.texi \
170         lispref/edebug-inc.texi \
171         lispref/edebug.texi \
172         lispref/ent.texi \
173         lispref/errors.texi \
174         lispref/eval.texi \
175         lispref/extents.texi \
176         lispref/faces.texi \
177         lispref/files.texi \
178         lispref/frames.texi \
179         lispref/functions.texi \
180         lispref/glyphs.texi \
181         lispref/hash-tables.texi \
182         lispref/help.texi \
183         lispref/hooks.texi \
184         lispref/index.texi \
185         lispref/internationalization.texi \
186         lispref/intro.texi \
187         lispref/keymaps.texi \
188         lispref/ldap.texi \
189         lispref/lispref.texi \
190         lispref/lists.texi \
191         lispref/loading.texi \
192         lispref/locals.texi \
193         lispref/macros.texi \
194         lispref/maps.texi \
195         lispref/markers.texi \
196         lispref/menus.texi \
197         lispref/minibuf.texi \
198         lispref/modes.texi \
199         lispref/mouse.texi \
200         lispref/mule.texi \
201         lispref/numbers.texi \
202         lispref/objects.texi \
203         lispref/openssl.texi \
204         lispref/os.texi \
205         lispref/packaging.texi \
206         lispref/positions.texi \
207         lispref/postgresql.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
242 $(INFODIR)/cl.info : cl.texi
243         $(MAKEINFO) -o $(INFODIR)/cl.info cl.texi
244
245 $(INFODIR)/custom.info : custom.texi
246         $(MAKEINFO) -o $(INFODIR)/custom.info custom.texi
247
248 $(INFODIR)/emodules.info : emodules.texi
249         $(MAKEINFO) -o $(INFODIR)/emodules.info emodules.texi
250
251 $(INFODIR)/external-widget.info : external-widget.texi
252         $(MAKEINFO) -o $(INFODIR)/external-widget.info external-widget.texi
253
254 $(INFODIR)/sppm.info : sppm.texi
255         $(MAKEINFO) -o $(INFODIR)/sppm.info sppm.texi
256
257 $(INFODIR)/term.info : term.texi
258         $(MAKEINFO) -o $(INFODIR)/term.info term.texi
259
260 $(INFODIR)/widget.info : widget.texi
261         $(MAKEINFO) -o $(INFODIR)/widget.info widget.texi
262
263 $(INFODIR)/sxemacs-faq.info : sxemacs-faq.texi
264         $(MAKEINFO) -o $(INFODIR)/sxemacs-faq.info sxemacs-faq.texi
265
266 # Manuals with their own subdirectory
267 $(INFODIR)/sxemacs.info : $(sxemacs-srcs)
268         $(MAKEINFO) -P sxemacs -o $(INFODIR)/sxemacs.info sxemacs/sxemacs.texi
269
270 $(INFODIR)/lispref.info : $(lispref-srcs)
271         $(MAKEINFO) -P lispref -o $(INFODIR)/lispref.info lispref/lispref.texi
272
273 $(INFODIR)/internals.info : $(internals-srcs)
274         $(MAKEINFO) -P internals -o $(INFODIR)/internals.info internals/internals.texi
275
276 $(INFODIR)/new-users-guide.info : $(new-users-guide-srcs)
277         $(MAKEINFO) -P new-users-guide -o $(INFODIR)/new-users-guide.info new-users-guide/new-users-guide.texi
278
279
280 $(HTMLDIR)/cl.html : cl.texi
281         $(MAKEINFO) --html -o $(HTMLDIR)/cl/ $<
282
283 $(HTMLDIR)/custom.html : custom.texi
284         $(MAKEINFO) --html -o $(HTMLDIR)/custom/ $<
285
286 $(HTMLDIR)/emodules.html : emodules.texi
287         $(MAKEINFO) --html -o $(HTMLDIR)/dso/ $<
288
289 $(HTMLDIR)/external-widget.html : external-widget.texi
290         $(MAKEINFO) --html -o $(HTMLDIR)/extwidget/ $<
291
292 $(HTMLDIR)/sppm.html : sppm.texi
293         $(MAKEINFO) --html -o $(HTMLDIR)/sppm/ $<
294
295 $(HTMLDIR)/term.html : term.texi
296         $(MAKEINFO) --html -o $(HTMLDIR)/term/ $<
297
298 $(HTMLDIR)/widget.html : widget.texi
299         $(MAKEINFO) --html -o $(HTMLDIR)/widget/ $<
300
301 $(HTMLDIR)/sxemacs-faq.html : sxemacs-faq.texi
302         $(MAKEINFO) --html -o $(HTMLDIR)/faq/ $<
303
304 # Manuals with their own subdirectory
305 $(HTMLDIR)/sxemacs.html : $(sxemacs-srcs)
306         $(MAKEINFO) -P sxemacs --html -o $(HTMLDIR)/sxemacs/ sxemacs/sxemacs.texi
307
308 $(HTMLDIR)/lispref.html : $(lispref-srcs)
309         $(MAKEINFO) -P lispref --html -o $(HTMLDIR)/lispref/ lispref/lispref.texi
310
311 $(HTMLDIR)/internals.html : $(internals-srcs)
312         $(MAKEINFO) -P internals --html -o $(HTMLDIR)/internals/ internals/internals.texi
313
314 $(HTMLDIR)/new-users-guide.html : $(new-users-guide-srcs)
315         $(MAKEINFO) -P new-users-guide --html -o $(HTMLDIR)/intro/ new-users-guide/new-users-guide.texi
316
317
318 sxemacs : $(INFODIR)/sxemacs.info
319 lispref : $(INFODIR)/lispref.info
320 internals : $(INFODIR)/internals.info
321 new-users-guide.info : $(INFODIR)/new-users-guide.info
322
323 .PHONY : sxemacs lispref internals new-users-guide info dvi
324
325 info : $(info_files)
326
327 .PHONY: info dvi html
328
329 .texi.dvi: 
330         $(TEXI2DVI) -c -s $< 
331
332 sxemacs.dvi : $(sxemacs-srcs)
333         $(TEXI2DVI) -I sxemacs -c -s sxemacs/sxemacs.texi
334
335 lispref.dvi : $(lispref-srcs)
336         $(TEXI2DVI) -I lispref -c -s lispref/lispref.texi
337
338 internals.dvi : $(internals-srcs)
339         $(TEXI2DVI) -I internals -c -s internals/internals.texi
340
341 new-users-guide.dvi : $(new-users-guide-srcs)
342         $(TEXI2DVI) -I new-users-guide -c -s new-users-guide/new-users-guide.texi 
343
344 dvi :  $(dvi_files)
345
346
347 %.ps: %.dvi
348         $(DVI2PS) $< -o $@
349
350 ps : $(ps_files)
351
352
353
354 %.pdf: %.dvi 
355         $(DVI2PDF) $< $@
356
357
358 pdf : $(pdf_files)
359
360 $(HTMLDIR):
361         mkdir -p $@
362
363 html: $(HTMLDIR) $(html_files)
364
365
366
367
368 .PHONY: mostlyclean clean distclean realclean extraclean
369 mostlyclean:
370         $(RM) *.toc *.aux *.log *.op *.cp *.cps *.fn *.fns
371         $(RM) *.ky *.kys *.pg *.pgs *.tp *.tps *.vr *.vrs
372 clean: mostlyclean
373         $(RM) core *.dvi *.pdf *.ps
374 distclean: clean
375 realclean: distclean
376 extraclean: distclean
377         $(RM) *~ \#* */*~ */\#*