(U+6C79): Add `ideographic-structure'; add `sound@ja/on'; add
[chise/xemacs-chise.git.1] / man / Makefile
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
25 RM = rm -f
26
27 .SUFFIXES:
28 .SUFFIXES: .info .texi .dvi
29
30 RECURSIVE_MAKE_ARGS = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
31
32 all : info
33
34 # Ughhh!  The things we do to have portable makefiles...
35
36 INFODIR = ../info
37
38 info_files = \
39         $(INFODIR)/cl.info \
40         $(INFODIR)/custom.info \
41         $(INFODIR)/emodules.info \
42         $(INFODIR)/external-widget.info \
43         $(INFODIR)/info.info \
44         $(INFODIR)/lispref.info \
45         $(INFODIR)/internals.info \
46         $(INFODIR)/new-users-guide.info \
47         $(INFODIR)/standards.info \
48         $(INFODIR)/term.info \
49         $(INFODIR)/termcap.info \
50         $(INFODIR)/texinfo.info \
51         $(INFODIR)/widget.info \
52         $(INFODIR)/xemacs.info \
53         $(INFODIR)/xemacs-faq.info
54
55 dvi_files = \
56         cl.dvi \
57         custom.dvi \
58         emodules.dvi \
59         external-widget.dvi \
60         info.dvi \
61         lispref.dvi \
62         internals.dvi \
63         new-users-guide.dvi \
64         standards.dvi \
65         term.dvi \
66         termcap.dvi \
67         texinfo.dvi \
68         widget.dvi \
69         xemacs.dvi \
70         xemacs-faq.dvi
71
72 xemacs-srcs = \
73         xemacs/abbrevs.texi \
74         xemacs/basic.texi \
75         xemacs/buffers.texi \
76         xemacs/building.texi \
77         xemacs/calendar.texi \
78         xemacs/cmdargs.texi \
79         xemacs/custom.texi \
80         xemacs/display.texi \
81         xemacs/entering.texi \
82         xemacs/files.texi \
83         xemacs/fixit.texi \
84         xemacs/frame.texi \
85         xemacs/glossary.texi \
86         xemacs/gnu.texi \
87         xemacs/help.texi \
88         xemacs/indent.texi \
89         xemacs/keystrokes.texi \
90         xemacs/killing.texi \
91         xemacs/m-x.texi \
92         xemacs/major.texi \
93         xemacs/mark.texi \
94         xemacs/menus.texi \
95         xemacs/mini.texi \
96         xemacs/misc.texi \
97         xemacs/mouse.texi \
98         xemacs/mule.texi \
99         xemacs/new.texi \
100         xemacs/packages.texi \
101         xemacs/picture.texi \
102         xemacs/programs.texi \
103         xemacs/reading.texi \
104         xemacs/regs.texi \
105         xemacs/search.texi \
106         xemacs/sending.texi \
107         xemacs/startup.texi \
108         xemacs/text.texi \
109         xemacs/trouble.texi \
110         xemacs/undo.texi \
111         xemacs/windows.texi \
112         xemacs/xemacs.texi
113
114 lispref-srcs = \
115         lispref/abbrevs.texi \
116         lispref/annotations.texi \
117         lispref/back.texi \
118         lispref/backups.texi \
119         lispref/buffers.texi \
120         lispref/building.texi \
121         lispref/commands.texi \
122         lispref/compile.texi \
123         lispref/consoles-devices.texi \
124         lispref/control.texi \
125         lispref/customize.texi \
126         lispref/databases.texi \
127         lispref/debugging.texi \
128         lispref/dialog.texi \
129         lispref/display.texi \
130         lispref/dragndrop.texi \
131         lispref/edebug-inc.texi \
132         lispref/edebug.texi \
133         lispref/errors.texi \
134         lispref/eval.texi \
135         lispref/extents.texi \
136         lispref/faces.texi \
137         lispref/files.texi \
138         lispref/frames.texi \
139         lispref/functions.texi \
140         lispref/glyphs.texi \
141         lispref/hash-tables.texi \
142         lispref/help.texi \
143         lispref/hooks.texi \
144         lispref/index.texi \
145         lispref/internationalization.texi \
146         lispref/intro.texi \
147         lispref/keymaps.texi \
148         lispref/ldap.texi \
149         lispref/lispref.texi \
150         lispref/lists.texi \
151         lispref/loading.texi \
152         lispref/locals.texi \
153         lispref/macros.texi \
154         lispref/maps.texi \
155         lispref/markers.texi \
156         lispref/menus.texi \
157         lispref/minibuf.texi \
158         lispref/modes.texi \
159         lispref/mouse.texi \
160         lispref/mule.texi \
161         lispref/numbers.texi \
162         lispref/objects.texi \
163         lispref/os.texi \
164         lispref/packaging.texi \
165         lispref/positions.texi \
166         lispref/processes.texi \
167         lispref/range-tables.texi \
168         lispref/scrollbars.texi \
169         lispref/searching.texi \
170         lispref/sequences.texi \
171         lispref/specifiers.texi \
172         lispref/streams.texi \
173         lispref/strings.texi \
174         lispref/symbols.texi \
175         lispref/syntax.texi \
176         lispref/text.texi \
177         lispref/tips.texi \
178         lispref/toolbar.texi \
179         lispref/tooltalk.texi \
180         lispref/variables.texi \
181         lispref/windows.texi \
182         lispref/x-windows.texi
183
184 internals-srcs = \
185         internals/internals.texi
186
187 new-users-guide-srcs = \
188         new-users-guide/custom1.texi \
189         new-users-guide/custom2.texi \
190         new-users-guide/edit.texi \
191         new-users-guide/enter.texi \
192         new-users-guide/files.texi \
193         new-users-guide/help.texi \
194         new-users-guide/modes.texi \
195         new-users-guide/new-users-guide.texi \
196         new-users-guide/region.texi \
197         new-users-guide/search.texi \
198         new-users-guide/xmenu.texi
199
200 $(INFODIR)/cl.info : cl.texi
201         $(MAKEINFO) -o $(INFODIR)/cl.info cl.texi
202
203 $(INFODIR)/custom.info : custom.texi
204         $(MAKEINFO) -o $(INFODIR)/custom.info custom.texi
205
206 $(INFODIR)/emodules.info : emodules.texi
207         $(MAKEINFO) -o $(INFODIR)/emodules.info emodules.texi
208
209 $(INFODIR)/external-widget.info : external-widget.texi
210         $(MAKEINFO) -o $(INFODIR)/external-widget.info external-widget.texi
211
212 $(INFODIR)/info.info : info.texi
213         $(MAKEINFO) -o $(INFODIR)/info.info info.texi
214
215 $(INFODIR)/standards.info : standards.texi
216         $(MAKEINFO) -o $(INFODIR)/standards.info standards.texi
217
218 $(INFODIR)/term.info : term.texi
219         $(MAKEINFO) -o $(INFODIR)/term.info term.texi
220
221 $(INFODIR)/termcap.info : termcap.texi
222         $(MAKEINFO) -o $(INFODIR)/termcap.info termcap.texi
223
224 $(INFODIR)/texinfo.info : texinfo.texi
225         $(MAKEINFO) -o $(INFODIR)/texinfo.info texinfo.texi
226
227 $(INFODIR)/widget.info : widget.texi
228         $(MAKEINFO) -o $(INFODIR)/widget.info widget.texi
229
230 $(INFODIR)/xemacs-faq.info : xemacs-faq.texi
231         $(MAKEINFO) -o $(INFODIR)/xemacs-faq.info xemacs-faq.texi
232
233 # Manuals with their own subdirectory
234 $(INFODIR)/xemacs.info : $(xemacs-srcs)
235         $(MAKEINFO) -P xemacs -o $(INFODIR)/xemacs.info xemacs/xemacs.texi
236
237 $(INFODIR)/lispref.info : $(lispref-srcs)
238         $(MAKEINFO) -P lispref -o $(INFODIR)/lispref.info lispref/lispref.texi
239
240 $(INFODIR)/internals.info : $(internals-srcs)
241         $(MAKEINFO) -P internals -o $(INFODIR)/internals.info internals/internals.texi
242
243 $(INFODIR)/new-users-guide.info : $(new-users-guide-srcs)
244         $(MAKEINFO) -P new-users-guide -o $(INFODIR)/new-users-guide.info new-users-guide/new-users-guide.texi
245
246 # $(INFODIR)/w3.info : w3.texi
247 #       $(MAKEINFO) -o $(INFODIR)/w3.info w3.texi
248
249 # EMACS = ../src/xemacs
250 # EMACSFLAGS = -batch -q -no-site-file
251
252 # $(INFODIR)/vm.info : vm.texi
253 #       -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \
254 #               -f texinfo-format-buffer -f save-buffer
255 #       -mv vm.info* $(INFODIR)/.
256
257 # special = # $(INFODIR)/vm.info $(INFODIR)/texinfo.info
258
259 xemacs : $(INFODIR)/xemacs.info
260 lispref : $(INFODIR)/lispref.info
261 internals : $(INFODIR)/internals.info
262 new-users-guide.info : $(INFODIR)/new-users-guide.info
263
264 .PHONY : xemacs lispref internals new-users-guide info dvi
265
266 info : $(info_files)
267
268 # tm: FRC.tm
269 #       cd ./tm && $(MAKE) $(RECURSIVE_MAKE_ARGS)
270 # gnats: FRC.gnats
271 #       cd ./gnats && $(MAKE) $(RECURSIVE_MAKE_ARGS)
272 # FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats:
273
274 .PHONY: info dvi
275
276 .texi.dvi:
277         -$(TEXI2DVI) $<
278
279 xemacs.dvi : $(xemacs-srcs)
280         $(TEXI2DVI) -I xemacs xemacs/xemacs.texi
281
282 lispref.dvi : $(lispref-srcs)
283         $(TEXI2DVI) -I lispref lispref/lispref.texi
284
285 internals.dvi : $(internals-srcs)
286         $(TEXI2DVI) -I internals internals/internals.texi
287
288 new-users-guide.dvi : $(new-users-guide-srcs)
289         $(TEXI2DVI) -I new-users-guide new-users-guide/new-users-guide.texi
290
291 dvi : $(dvi_files)
292
293 .PHONY: mostlyclean clean distclean realclean extraclean
294 mostlyclean:
295         $(RM) *.toc *.aux *.log *.op *.cp *.cps *.fn *.fns
296         $(RM) *.ky *.kys *.pg *.pgs *.tp *.tps *.vr *.vrs
297 clean: mostlyclean
298         $(RM) core *.dvi
299 distclean: clean
300 realclean: distclean
301 extraclean: distclean
302         $(RM) *~ \#* */*~ */\#*