1 # Makefile for man subdirectory in XEmacs
2 # Copyright (C) 1995 Board of Trustees, University of Illinois
3 # Copyright (C) 1994, 1995 Sun Microsystems.
5 # This file is part of XEmacs.
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
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
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.
28 .SUFFIXES: .info .texi .dvi
30 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
34 # Ughhh! The things we do to have portable makefiles...
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
76 xemacs/building.texi \
77 xemacs/calendar.texi \
81 xemacs/entering.texi \
85 xemacs/glossary.texi \
89 xemacs/keystrokes.texi \
100 xemacs/packages.texi \
101 xemacs/picture.texi \
102 xemacs/programs.texi \
103 xemacs/reading.texi \
106 xemacs/sending.texi \
107 xemacs/startup.texi \
109 xemacs/trouble.texi \
111 xemacs/windows.texi \
115 lispref/abbrevs.texi \
116 lispref/annotations.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 \
135 lispref/extents.texi \
138 lispref/frames.texi \
139 lispref/functions.texi \
140 lispref/glyphs.texi \
141 lispref/hash-tables.texi \
145 lispref/internationalization.texi \
147 lispref/keymaps.texi \
149 lispref/lispref.texi \
151 lispref/loading.texi \
152 lispref/locals.texi \
153 lispref/macros.texi \
155 lispref/markers.texi \
157 lispref/minibuf.texi \
161 lispref/numbers.texi \
162 lispref/objects.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 \
178 lispref/toolbar.texi \
179 lispref/tooltalk.texi \
180 lispref/variables.texi \
181 lispref/windows.texi \
182 lispref/x-windows.texi
185 internals/internals.texi
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
200 $(INFODIR)/cl.info : cl.texi
201 $(MAKEINFO) -o $(INFODIR)/cl.info cl.texi
203 $(INFODIR)/custom.info : custom.texi
204 $(MAKEINFO) -o $(INFODIR)/custom.info custom.texi
206 $(INFODIR)/emodules.info : emodules.texi
207 $(MAKEINFO) -o $(INFODIR)/emodules.info emodules.texi
209 $(INFODIR)/external-widget.info : external-widget.texi
210 $(MAKEINFO) -o $(INFODIR)/external-widget.info external-widget.texi
212 $(INFODIR)/info.info : info.texi
213 $(MAKEINFO) -o $(INFODIR)/info.info info.texi
215 $(INFODIR)/standards.info : standards.texi
216 $(MAKEINFO) -o $(INFODIR)/standards.info standards.texi
218 $(INFODIR)/term.info : term.texi
219 $(MAKEINFO) -o $(INFODIR)/term.info term.texi
221 $(INFODIR)/termcap.info : termcap.texi
222 $(MAKEINFO) -o $(INFODIR)/termcap.info termcap.texi
224 $(INFODIR)/texinfo.info : texinfo.texi
225 $(MAKEINFO) -o $(INFODIR)/texinfo.info texinfo.texi
227 $(INFODIR)/widget.info : widget.texi
228 $(MAKEINFO) -o $(INFODIR)/widget.info widget.texi
230 $(INFODIR)/xemacs-faq.info : xemacs-faq.texi
231 $(MAKEINFO) -o $(INFODIR)/xemacs-faq.info xemacs-faq.texi
233 # Manuals with their own subdirectory
234 $(INFODIR)/xemacs.info : $(xemacs-srcs)
235 $(MAKEINFO) -P xemacs -o $(INFODIR)/xemacs.info xemacs/xemacs.texi
237 $(INFODIR)/lispref.info : $(lispref-srcs)
238 $(MAKEINFO) -P lispref -o $(INFODIR)/lispref.info lispref/lispref.texi
240 $(INFODIR)/internals.info : $(internals-srcs)
241 $(MAKEINFO) -P internals -o $(INFODIR)/internals.info internals/internals.texi
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
246 # $(INFODIR)/w3.info : w3.texi
247 # $(MAKEINFO) -o $(INFODIR)/w3.info w3.texi
249 # EMACS = ../src/xemacs
250 # EMACSFLAGS = -batch -q -no-site-file
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)/.
257 # special = # $(INFODIR)/vm.info $(INFODIR)/texinfo.info
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
264 .PHONY : xemacs lispref internals new-users-guide info dvi
269 # cd ./tm && $(RECURSIVE_MAKE)
271 # cd ./gnats && $(RECURSIVE_MAKE)
272 # FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats:
279 xemacs.dvi : $(xemacs-srcs)
280 $(TEXI2DVI) -I xemacs xemacs/xemacs.texi
282 lispref.dvi : $(lispref-srcs)
283 $(TEXI2DVI) -I lispref lispref/lispref.texi
285 internals.dvi : $(internals-srcs)
286 $(TEXI2DVI) -I internals internals/internals.texi
288 new-users-guide.dvi : $(new-users-guide-srcs)
289 $(TEXI2DVI) -I new-users-guide new-users-guide/new-users-guide.texi
293 .PHONY: mostlyclean clean distclean realclean extraclean
295 $(RM) *.toc *.aux *.log *.op *.cp *.cps *.fn *.fns
296 $(RM) *.ky *.kys *.pg *.pgs *.tp *.tps *.vr *.vrs
301 extraclean: distclean
302 $(RM) *~ \#* */*~ */\#*