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.
27 .SUFFIXES: .info .texi .dvi
29 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
33 # Ughhh! The things we do to have portable makefiles...
39 $(INFODIR)/custom.info \
40 $(INFODIR)/emodules.info \
41 $(INFODIR)/external-widget.info \
42 $(INFODIR)/info.info \
43 $(INFODIR)/lispref.info \
44 $(INFODIR)/internals.info \
45 $(INFODIR)/new-users-guide.info \
46 $(INFODIR)/standards.info \
47 $(INFODIR)/term.info \
48 $(INFODIR)/termcap.info \
49 $(INFODIR)/texinfo.info \
50 $(INFODIR)/widget.info \
51 $(INFODIR)/xemacs.info \
52 $(INFODIR)/xemacs-faq.info
75 xemacs/building.texi \
76 xemacs/calendar.texi \
80 xemacs/entering.texi \
84 xemacs/glossary.texi \
88 xemacs/keystrokes.texi \
99 xemacs/packages.texi \
100 xemacs/picture.texi \
101 xemacs/programs.texi \
102 xemacs/reading.texi \
105 xemacs/sending.texi \
106 xemacs/startup.texi \
108 xemacs/trouble.texi \
110 xemacs/windows.texi \
114 lispref/abbrevs.texi \
115 lispref/annotations.texi \
117 lispref/backups.texi \
118 lispref/buffers.texi \
119 lispref/building.texi \
120 lispref/commands.texi \
121 lispref/compile.texi \
122 lispref/consoles-devices.texi \
123 lispref/control.texi \
124 lispref/customize.texi \
125 lispref/databases.texi \
126 lispref/debugging.texi \
127 lispref/dialog.texi \
128 lispref/display.texi \
129 lispref/dragndrop.texi \
130 lispref/edebug-inc.texi \
131 lispref/edebug.texi \
132 lispref/errors.texi \
134 lispref/extents.texi \
137 lispref/frames.texi \
138 lispref/functions.texi \
139 lispref/glyphs.texi \
140 lispref/hash-tables.texi \
144 lispref/internationalization.texi \
146 lispref/keymaps.texi \
148 lispref/lispref.texi \
150 lispref/loading.texi \
151 lispref/locals.texi \
152 lispref/macros.texi \
154 lispref/markers.texi \
156 lispref/minibuf.texi \
160 lispref/numbers.texi \
161 lispref/objects.texi \
163 lispref/positions.texi \
164 lispref/processes.texi \
165 lispref/range-tables.texi \
166 lispref/scrollbars.texi \
167 lispref/searching.texi \
168 lispref/sequences.texi \
169 lispref/specifiers.texi \
170 lispref/streams.texi \
171 lispref/strings.texi \
172 lispref/symbols.texi \
173 lispref/syntax.texi \
176 lispref/toolbar.texi \
177 lispref/tooltalk.texi \
178 lispref/variables.texi \
179 lispref/windows.texi \
180 lispref/x-windows.texi
183 internals/internals.texi
185 new-users-guide-srcs = \
186 new-users-guide/custom1.texi \
187 new-users-guide/custom2.texi \
188 new-users-guide/edit.texi \
189 new-users-guide/enter.texi \
190 new-users-guide/files.texi \
191 new-users-guide/help.texi \
192 new-users-guide/modes.texi \
193 new-users-guide/new-users-guide.texi \
194 new-users-guide/region.texi \
195 new-users-guide/search.texi \
196 new-users-guide/xmenu.texi
198 $(INFODIR)/cl.info : cl.texi
199 $(MAKEINFO) -o $(INFODIR)/cl.info cl.texi
201 $(INFODIR)/custom.info : custom.texi
202 $(MAKEINFO) -o $(INFODIR)/custom.info custom.texi
204 $(INFODIR)/emodules.info : emodules.texi
205 $(MAKEINFO) -o $(INFODIR)/emodules.info emodules.texi
207 $(INFODIR)/external-widget.info : external-widget.texi
208 $(MAKEINFO) -o $(INFODIR)/external-widget.info external-widget.texi
210 $(INFODIR)/info.info : info.texi
211 $(MAKEINFO) -o $(INFODIR)/info.info info.texi
213 $(INFODIR)/standards.info : standards.texi
214 $(MAKEINFO) -o $(INFODIR)/standards.info standards.texi
216 $(INFODIR)/term.info : term.texi
217 $(MAKEINFO) -o $(INFODIR)/term.info term.texi
219 $(INFODIR)/termcap.info : termcap.texi
220 $(MAKEINFO) -o $(INFODIR)/termcap.info termcap.texi
222 $(INFODIR)/texinfo.info : texinfo.texi
223 $(MAKEINFO) -o $(INFODIR)/texinfo.info texinfo.texi
225 $(INFODIR)/widget.info : widget.texi
226 $(MAKEINFO) -o $(INFODIR)/widget.info widget.texi
228 $(INFODIR)/xemacs-faq.info : xemacs-faq.texi
229 $(MAKEINFO) -o $(INFODIR)/xemacs-faq.info xemacs-faq.texi
231 # Manuals with their own subdirectory
232 $(INFODIR)/xemacs.info : $(xemacs-srcs)
233 $(MAKEINFO) -P xemacs -o $(INFODIR)/xemacs.info xemacs/xemacs.texi
235 $(INFODIR)/lispref.info : $(lispref-srcs)
236 $(MAKEINFO) -P lispref -o $(INFODIR)/lispref.info lispref/lispref.texi
238 $(INFODIR)/internals.info : $(internals-srcs)
239 $(MAKEINFO) -P internals -o $(INFODIR)/internals.info internals/internals.texi
241 $(INFODIR)/new-users-guide.info : $(new-users-guide-srcs)
242 $(MAKEINFO) -P new-users-guide -o $(INFODIR)/new-users-guide.info new-users-guide/new-users-guide.texi
244 # $(INFODIR)/w3.info : w3.texi
245 # $(MAKEINFO) -o $(INFODIR)/w3.info w3.texi
247 # EMACS = ../src/xemacs
248 # EMACSFLAGS = -batch -q -no-site-file
250 # $(INFODIR)/vm.info : vm.texi
251 # -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \
252 # -f texinfo-format-buffer -f save-buffer
253 # -mv vm.info* $(INFODIR)/.
255 # special = # $(INFODIR)/vm.info $(INFODIR)/texinfo.info
257 xemacs : $(INFODIR)/xemacs.info
258 lispref : $(INFODIR)/lispref.info
259 internals : $(INFODIR)/internals.info
260 new-users-guide.info : $(INFODIR)/new-users-guide.info
262 .PHONY : xemacs lispref internals new-users-guide info dvi
267 # cd ./tm && $(RECURSIVE_MAKE)
269 # cd ./gnats && $(RECURSIVE_MAKE)
270 # FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats:
277 xemacs.dvi : $(xemacs-srcs)
278 $(TEXI2DVI) -I xemacs xemacs/xemacs.texi
280 lispref.dvi : $(lispref-srcs)
281 $(TEXI2DVI) -I lispref lispref/lispref.texi
283 internals.dvi : $(internals-srcs)
284 $(TEXI2DVI) -I internals internals/internals.texi
286 new-users-guide.dvi : $(new-users-guide-srcs)
287 $(TEXI2DVI) -I new-users-guide new-users-guide/new-users-guide.texi
291 .PHONY: mostlyclean clean distclean realclean extraclean
293 rm -f *.toc *.aux *.log *.op *.cp *.cps *.fn *.fns
294 rm -f *.ky *.kys *.pg *.pgs *.tp *.tps *.vr *.vrs
299 extraclean: distclean
300 rm -f *~ \#* */*~ */\#*