1 # Makefile for man subdirectory in SXEmacs
2 # Copyright (C) 1995 Board of Trustees, University of Illinois
3 # Copyright (C) 1994, 1995 Sun Microsystems.
5 # This file is part of SXEmacs.
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
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
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.
31 .SUFFIXES: .info .texi .dvi
33 RECURSIVE_MAKE_ARGS = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
37 # Ughhh! The things we do to have portable makefiles...
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
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
102 external-widget.pdf \
105 new-users-guide.pdf \
113 sxemacs/abbrevs.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 \
125 sxemacs/glossary.texi \
127 sxemacs/indent.texi \
128 sxemacs/keystrokes.texi \
129 sxemacs/killing.texi \
139 sxemacs/packages.texi \
140 sxemacs/picture.texi \
141 sxemacs/programs.texi \
142 sxemacs/reading.texi \
144 sxemacs/search.texi \
145 sxemacs/sending.texi \
146 sxemacs/startup.texi \
148 sxemacs/trouble.texi \
150 sxemacs/windows.texi \
154 lispref/abbrevs.texi \
155 lispref/annotations.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 \
173 lispref/errors.texi \
175 lispref/extents.texi \
178 lispref/frames.texi \
179 lispref/functions.texi \
180 lispref/glyphs.texi \
181 lispref/hash-tables.texi \
185 lispref/internationalization.texi \
187 lispref/keymaps.texi \
189 lispref/lispref.texi \
191 lispref/loading.texi \
192 lispref/locals.texi \
193 lispref/macros.texi \
195 lispref/markers.texi \
197 lispref/minibuf.texi \
201 lispref/numbers.texi \
202 lispref/objects.texi \
203 lispref/openssl.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 \
220 lispref/toolbar.texi \
221 lispref/tooltalk.texi \
222 lispref/variables.texi \
223 lispref/windows.texi \
224 lispref/x-windows.texi
227 internals/internals.texi
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
242 $(INFODIR)/cl.info : cl.texi
243 $(MAKEINFO) -o $(INFODIR)/cl.info cl.texi
245 $(INFODIR)/custom.info : custom.texi
246 $(MAKEINFO) -o $(INFODIR)/custom.info custom.texi
248 $(INFODIR)/emodules.info : emodules.texi
249 $(MAKEINFO) -o $(INFODIR)/emodules.info emodules.texi
251 $(INFODIR)/external-widget.info : external-widget.texi
252 $(MAKEINFO) -o $(INFODIR)/external-widget.info external-widget.texi
254 $(INFODIR)/sppm.info : sppm.texi
255 $(MAKEINFO) -o $(INFODIR)/sppm.info sppm.texi
257 $(INFODIR)/term.info : term.texi
258 $(MAKEINFO) -o $(INFODIR)/term.info term.texi
260 $(INFODIR)/widget.info : widget.texi
261 $(MAKEINFO) -o $(INFODIR)/widget.info widget.texi
263 $(INFODIR)/sxemacs-faq.info : sxemacs-faq.texi
264 $(MAKEINFO) -o $(INFODIR)/sxemacs-faq.info sxemacs-faq.texi
266 # Manuals with their own subdirectory
267 $(INFODIR)/sxemacs.info : $(sxemacs-srcs)
268 $(MAKEINFO) -P sxemacs -o $(INFODIR)/sxemacs.info sxemacs/sxemacs.texi
270 $(INFODIR)/lispref.info : $(lispref-srcs)
271 $(MAKEINFO) -P lispref -o $(INFODIR)/lispref.info lispref/lispref.texi
273 $(INFODIR)/internals.info : $(internals-srcs)
274 $(MAKEINFO) -P internals -o $(INFODIR)/internals.info internals/internals.texi
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
280 $(HTMLDIR)/cl.html : cl.texi
281 $(MAKEINFO) --html -o $(HTMLDIR)/cl/ $<
283 $(HTMLDIR)/custom.html : custom.texi
284 $(MAKEINFO) --html -o $(HTMLDIR)/custom/ $<
286 $(HTMLDIR)/emodules.html : emodules.texi
287 $(MAKEINFO) --html -o $(HTMLDIR)/dso/ $<
289 $(HTMLDIR)/external-widget.html : external-widget.texi
290 $(MAKEINFO) --html -o $(HTMLDIR)/extwidget/ $<
292 $(HTMLDIR)/sppm.html : sppm.texi
293 $(MAKEINFO) --html -o $(HTMLDIR)/sppm/ $<
295 $(HTMLDIR)/term.html : term.texi
296 $(MAKEINFO) --html -o $(HTMLDIR)/term/ $<
298 $(HTMLDIR)/widget.html : widget.texi
299 $(MAKEINFO) --html -o $(HTMLDIR)/widget/ $<
301 $(HTMLDIR)/sxemacs-faq.html : sxemacs-faq.texi
302 $(MAKEINFO) --html -o $(HTMLDIR)/faq/ $<
304 # Manuals with their own subdirectory
305 $(HTMLDIR)/sxemacs.html : $(sxemacs-srcs)
306 $(MAKEINFO) -P sxemacs --html -o $(HTMLDIR)/sxemacs/ sxemacs/sxemacs.texi
308 $(HTMLDIR)/lispref.html : $(lispref-srcs)
309 $(MAKEINFO) -P lispref --html -o $(HTMLDIR)/lispref/ lispref/lispref.texi
311 $(HTMLDIR)/internals.html : $(internals-srcs)
312 $(MAKEINFO) -P internals --html -o $(HTMLDIR)/internals/ internals/internals.texi
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
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
323 .PHONY : sxemacs lispref internals new-users-guide info dvi
327 .PHONY: info dvi html
332 sxemacs.dvi : $(sxemacs-srcs)
333 $(TEXI2DVI) -I sxemacs -c -s sxemacs/sxemacs.texi
335 lispref.dvi : $(lispref-srcs)
336 $(TEXI2DVI) -I lispref -c -s lispref/lispref.texi
338 internals.dvi : $(internals-srcs)
339 $(TEXI2DVI) -I internals -c -s internals/internals.texi
341 new-users-guide.dvi : $(new-users-guide-srcs)
342 $(TEXI2DVI) -I new-users-guide -c -s new-users-guide/new-users-guide.texi
363 html: $(HTMLDIR) $(html_files)
368 .PHONY: mostlyclean clean distclean realclean extraclean
370 $(RM) *.toc *.aux *.log *.op *.cp *.cps *.fn *.fns
371 $(RM) *.ky *.kys *.pg *.pgs *.tp *.tps *.vr *.vrs
373 $(RM) core *.dvi *.pdf *.ps
376 extraclean: distclean
377 $(RM) *~ \#* */*~ */\#*