gdb:
[deliverable/binutils-gdb.git] / gdb / doc / Makefile.in
CommitLineData
6aba47ca 1##Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2002, 2003,
0fb0cc75 2##2007, 2008, 2009 Free Software Foundation, Inc.
c906108c
SS
3
4# Makefile for GDB documentation.
5# This file is part of GDB.
6
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
c02a867d 19# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
c906108c
SS
20
21srcdir = @srcdir@
22VPATH = @srcdir@
23
24prefix = @prefix@
25
26infodir = @infodir@
89a34d1b
JM
27pdfdir = @pdfdir@
28htmldir = @htmldir@
c906108c
SS
29
30SHELL = @SHELL@
31
39ec5655
EZ
32LN_S = @LN_S@
33
c906108c
SS
34INSTALL = @INSTALL@
35INSTALL_PROGRAM = @INSTALL_PROGRAM@
36INSTALL_DATA = @INSTALL_DATA@
37
9453113a
DJ
38mkinstalldirs = $(SHELL) $(srcdir)/../../mkinstalldirs
39
c906108c
SS
40# main GDB source directory
41gdbdir = $(srcdir)/..
42
43# where to find texinfo; GDB dist should include a recent one
44TEXIDIR=${gdbdir}/../texinfo
45
46# where to find makeinfo, preferably one designed for texinfo-2
47MAKEINFO=makeinfo
48
2b831889
JM
49MAKEHTML = $(MAKEINFO) --html
50MAKEHTMLFLAGS =
085dd6e6 51
c906108c
SS
52# where to find texi2roff, ditto
53TEXI2ROFF=texi2roff
54
be298bcc
AC
55# where to find texi2dvi, ditto
56TEXI2DVI=texi2dvi
57
c16158bc
JM
58# Package version and bug-reporting URL.
59PKGVERSION = @PKGVERSION@
60BUGURL_TEXI = @REPORT_BUGS_TEXI@
61
c906108c
SS
62# Where is the source dir for the READLINE library doc?
63# Traditionally readline is in .. or .
64READLINE_DIR = ${gdbdir}/../readline/doc
65
7162c0ca
EZ
66# The GDB/MI docs come from a sibling directory ../mi
67GDBMI_DIR = ${gdbdir}/mi
68
69SET_TEXINPUTS = \
70 TEXINPUTS=${TEXIDIR}:.:$(srcdir):$(READLINE_DIR):$(GDBMI_DIR):$$TEXINPUTS
c906108c 71
63ac3005 72# Files which should be generated via 'info' and installed by 'install-info'
e6f672d2 73INFO_DEPS = gdb.info gdbint.info stabs.info annotate.info
63ac3005 74
9453113a
DJ
75# Files which should be generated via 'pdf' and installed by 'install-pdf'
76PDFFILES = gdb.pdf gdbint.pdf stabs.pdf refcard.pdf annotate.pdf
2b831889
JM
77# Files which should be generated via 'html' and installed by 'install-html'
78HTMLFILES = gdb/index.html gdbint/index.html stabs/index.html annotate/index.html
79HTMLFILES_INSTALL = gdb gdbint stabs annotate
9453113a 80
c906108c
SS
81# There may be alternate predefined collections of switches to configure
82# the GDB manual. Normally this is not done in synch with the software
83# config system, since this choice tends to be independent; most people
84# want a doc config of `all' for a generic manual, regardless of sw config.
85DOC_CONFIG = all
86
87# This list of sed edits will edit the GDB reference card
88# for what fonts and what papersize to use.
89# By default (NO edits applied), the refcard uses:
90# - Computer Modern (CM) fonts
91# - US letter paper (8.5x11in)
92# List some of the following files for alternative fonts and paper:
93# a4rc.sed use A4 paper (297 x 210 mm)
94# psrc.sed use PostScript fonts (Karl Berry short TeX names)
95# lpsrc.sed use PostScript fonts (full PostScript names in TeX)
96# e.g. for A4, Postscript: REFEDITS = a4rc.sed psrc.sed
97# for A4, CM fonts: REFEDITS = a4rc.sed
98# for US, PS fonts: REFEDITS = psrc.sed
99# for default:
100REFEDITS =
101
102# Don Knuth's TeX formatter
103TEX = tex
9453113a 104PDFTEX = pdftex
c906108c 105
c906108c
SS
106# Program to generate Postscript files from DVI files.
107DVIPS = dvips
108
b0787093
AC
109# Main GDB manual
110GDB_DOC_SOURCE_INCLUDES = \
aab4e0ec 111 $(srcdir)/fdl.texi \
b0787093 112 $(srcdir)/gpl.texi \
f418dd93 113 $(srcdir)/agentexpr.texi \
5bdf8622 114 $(READLINE_DIR)/rluser.texi \
b0787093
AC
115 $(READLINE_DIR)/inc-hist.texinfo
116GDB_DOC_BUILD_INCLUDES = \
117 gdb-cfg.texi \
118 GDBvn.texi
119GDB_DOC_FILES = \
120 $(srcdir)/gdb.texinfo \
121 $(GDB_DOC_SOURCE_INCLUDES) \
122 $(GDB_DOC_BUILD_INCLUDES)
123
124# Internals Manual
125GDBINT_DOC_SOURCE_INCLUDES = \
bcd7e15f
JB
126 $(srcdir)/fdl.texi \
127 $(srcdir)/observer.texi
b0787093
AC
128GDBINT_DOC_BUILD_INCLUDES = \
129 gdb-cfg.texi \
130 GDBvn.texi
131GDBINT_DOC_FILES = \
132 $(srcdir)/gdbint.texinfo \
133 $(GDBINT_DOC_SOURCE_INCLUDES) \
134 $(GDBINT_DOC_BUILD_INCLUDES)
135
136# Stabs manual: All files
e5249f67
AC
137STABS_DOC_SOURCE_INCLUDES = \
138 $(srcdir)/fdl.texi
b0787093
AC
139STABS_DOC_BUILD_INCLUDES =
140STABS_DOC_FILES = \
141 $(srcdir)/stabs.texinfo \
142 $(STABS_DOC_SOURCE_INCLUDES) \
143 $(STABS_DOC_BUILD_INCLUDES)
c906108c 144
e6f672d2
AC
145# Annotate migration document
146ANNOTATE_DOC_SOURCE_INCLUDES = \
147 $(srcdir)/fdl.texi
148ANNOTATE_DOC_BUILD_INCLUDES = \
149 gdb-cfg.texi
150ANNOTATE_DOC_FILES = \
151 $(srcdir)/annotate.texinfo \
152 $(ANNOTATE_DOC_SOURCE_INCLUDES) \
153 $(ANNOTATE_DOC_BUILD_INCLUDES)
154
c906108c
SS
155#### Host, target, and site specific Makefile fragments come in here.
156###
157
35db0260 158all:
c906108c 159
63ac3005 160info: $(INFO_DEPS)
e6f672d2
AC
161dvi: gdb.dvi gdbint.dvi stabs.dvi refcard.dvi annotate.dvi
162ps: gdb.ps gdbint.ps stabs.ps refcard.ps annotate.ps
2b831889 163html: $(HTMLFILES)
9453113a 164pdf: $(PDFFILES)
449f3b6c 165all-doc: info dvi ps # pdf
3555de01 166diststuff: info
c906108c 167
63ac3005 168install-info: $(INFO_DEPS)
c938e9b0 169 $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(infodir)
63ac3005
EZ
170 @list='$(INFO_DEPS)'; \
171 for file in $$list; do \
172 if test -f $$file; then d=.; else d=$(srcdir); fi; \
173 for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
174 if test -f $$d/$$ifile; then \
c938e9b0
L
175 echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
176 $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
63ac3005
EZ
177 else : ; fi; \
178 done; \
179 done
c166cdc7 180 $(POST_INSTALL)
d3229ae3 181 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
63ac3005 182 list='$(INFO_DEPS)'; \
d3229ae3 183 for file in $$list; do \
5843504f
EZ
184 echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
185 install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
d3229ae3
EZ
186 done; \
187 else : ; fi
c906108c 188
c166cdc7
EZ
189uninstall-info:
190 $(PRE_UNINSTALL)
191 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
192 ii=yes; \
193 else ii=; fi; \
194 list='$(INFO_DEPS)'; \
195 for file in $$list; do \
196 test -z "$$ii" \
197 || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
198 done
199 $(NORMAL_UNINSTALL)
200 list='$(INFO_DEPS)'; \
201 for file in $$list; do \
202 (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
203 done
204
2b831889
JM
205html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
206
207install-html: $(HTMLFILES)
208 @$(NORMAL_INSTALL)
209 test -z "$(htmldir)" || $(mkinstalldirs) "$(DESTDIR)$(htmldir)"
210 @list='$(HTMLFILES_INSTALL)'; for p in $$list; do \
211 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
212 f=$(html__strip_dir) \
213 if test -d "$$d$$p"; then \
214 echo " $(mkinstalldirs) '$(DESTDIR)$(htmldir)/$$f'"; \
215 $(mkinstalldirs) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
216 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
217 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
218 else \
219 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
220 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
221 fi; \
085dd6e6
JM
222 done
223
9453113a
DJ
224pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
225
226install-pdf: $(PDFFILES)
227 @$(NORMAL_INSTALL)
228 test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
229 @list='$(PDFFILES)'; for p in $$list; do \
230 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
231 f=$(pdf__strip_dir) \
232 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
233 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
234 done
235
449f3b6c 236STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi *.pdf
c906108c
SS
237
238# Copy the object files from a particular stage into a subdirectory.
239stage1: force
240 -mkdir stage1
241 -mv $(STAGESTUFF) stage1
242
243stage2: force
244 -mkdir stage2
245 -mv $(STAGESTUFF) stage2
246
247stage3: force
248 -mkdir stage3
249 -mv $(STAGESTUFF) stage3
250
251against=stage2
252
253comparison: force
254 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
255
256de-stage1: force
257 -(cd stage1 ; mv -f * ..)
258 -rmdir stage1
259
260de-stage2: force
261 -(cd stage2 ; mv -f * ..)
262 -rmdir stage2
263
264de-stage3: force
265 -(cd stage3 ; mv -f * ..)
266 -rmdir stage3
267
c906108c
SS
268# GDB QUICK REFERENCE (dvi output)
269refcard.dvi : refcard.tex $(REFEDITS)
dfa249fb
AC
270 echo > tmp.sed
271 for f in x $(REFEDITS) ; do \
272 test x$$f = xx && continue ; \
273 cat $(srcdir)/$$f >>tmp.sed ; \
274 done
275 sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex
c906108c
SS
276 $(SET_TEXINPUTS) $(TEX) sedref.tex
277 mv sedref.dvi refcard.dvi
278 rm -f sedref.log sedref.tex tmp.sed
279
280refcard.ps : refcard.dvi
281 $(DVIPS) -t landscape -o $@ $?
282
9453113a
DJ
283refcard.pdf : refcard.tex $(REFEDITS)
284 echo > tmp.sed
285 for f in x $(REFEDITS) ; do \
286 test x$$f = xx && continue ; \
287 cat $(srcdir)/$$f >>tmp.sed ; \
288 done
289 sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex
290 $(SET_TEXINPUTS) $(PDFTEX) sedref.tex
291 mv sedref.pdf refcard.pdf
292 rm -f sedref.log sedref.tex tmp.sed
293
05a54c4f
AC
294# File to record current GDB version number (copied from main dir version.in)
295GDBvn.texi : ${gdbdir}/version.in
9ba8d803 296 echo "@set GDBVN `sed q $(srcdir)/../version.in`" > ./GDBvn.new
c16158bc
JM
297 if [ -n "$(PKGVERSION)" ]; then \
298 echo "@set VERSION_PACKAGE $(PKGVERSION)" >> ./GDBvn.new; \
299 fi
300 echo "@set BUGURL $(BUGURL_TEXI)" >> ./GDBvn.new
301 if [ "$(BUGURL_TEXI)" = "@uref{http://www.gnu.org/software/gdb/bugs/}" ]; then \
302 echo "@set BUGURL_DEFAULT" >> ./GDBvn.new; \
303 fi
c906108c
SS
304 mv GDBvn.new GDBvn.texi
305
306# Updated atomically
307.PRECIOUS: GDBvn.texi
308
309# Choose configuration for GDB manual (normally `all'; normally not tied into
310# `configure' script because most users prefer generic version of manual,
311# not one for their binary config---which may not be specifically
312# defined anyways).
313gdb-cfg.texi: ${srcdir}/${DOC_CONFIG}-cfg.texi
44e2be90 314 (test "$(LN_S)" = "ln -s" && \
39ec5655 315 ln -s ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi) || \
c906108c
SS
316 ln ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \
317 cp ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi
318
319# GDB MANUAL: texinfo source, using @set/@clear/@value/@ifset/@ifclear
320# If your texinfo or makeinfo don't support these, get a new texinfo release
321#
322# The nonsense with GDBvn.texi gets this to run with both Sun and GNU make.
323# Note that we can *generate* GDBvn.texi, but since we distribute one in the
324# source directory for the benefit of people who *don't* use this makefile,
325# VPATH will often tell make not to bother building it, because the one
326# in the srcdir is up to date. (if not, then make should build one here).
327
46d8b1c3
AC
328# Clean these up before each run. Avoids a catch 22 with not being
329# able to re-generate these files (to fix a corruption) because these
330# files contain a corruption.
b0787093
AC
331GDB_TEX_TMPS = gdb.aux gdb.cp* gdb.fn* gdb.ky* gdb.log gdb.pg* gdb.toc \
332 gdb.tp* gdb.vr*
333
c906108c 334# GDB MANUAL: TeX dvi file
b0787093 335gdb.dvi: ${GDB_DOC_FILES}
c906108c 336 if [ ! -f ./GDBvn.texi ]; then \
44e2be90 337 (test "$(LN_S)" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
c906108c
SS
338 ln $(srcdir)/GDBvn.texi . || \
339 cp $(srcdir)/GDBvn.texi . ; else true; fi
b0787093 340 rm -f $(GDB_TEX_TMPS)
be298bcc 341 $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/gdb.texinfo
c906108c
SS
342
343gdb.ps: gdb.dvi
344 $(DVIPS) -o $@ $?
345
b0787093 346gdb.pdf: ${GDB_DOC_FILES}
449f3b6c 347 if [ ! -f ./GDBvn.texi ]; then \
44e2be90 348 (test "$(LN_S)" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
449f3b6c
AC
349 ln $(srcdir)/GDBvn.texi . || \
350 cp $(srcdir)/GDBvn.texi . ; else true; fi
b0787093 351 rm -f $(GDB_TEX_TMPS)
be298bcc 352 $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/gdb.texinfo
449f3b6c 353
c906108c 354# GDB MANUAL: info file
b0787093 355gdb.info: ${GDB_DOC_FILES}
a7b40f07
AC
356 $(MAKEINFO) -I ${READLINE_DIR} -I ${GDBMI_DIR} -I $(srcdir) \
357 -o gdb.info $(srcdir)/gdb.texinfo
c906108c
SS
358
359# GDB MANUAL: roff translations
360# Try to use a recent texi2roff. v2 was put on prep in jan91.
361# If you want an index, see texi2roff doc for postprocessing
362# and add -i to texi2roff invocations below.
363# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
364# corresponding -e lines when later texi2roff's are current)
365# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
366# + @c's deleted explicitly because texi2roff sees texinfo commands in them
367# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
368# + @alphaenumerate is ridiculously new, turned into @enumerate
369
370# texi2roff doesn't have a notion of include dirs, so we have to fake
371# it out for gdb manual's include files---but only if not configured
372# in main sourcedir.
b0787093 373links2roff: $(GDB_DOC_SOURCE_INCLUDES)
c906108c 374 if [ ! -f gdb.texinfo ]; then \
44e2be90 375 (test "$(LN_S)" = "ln -s" && ln -s $(GDB_DOC_SOURCE_INCLUDES) .) || \
b0787093
AC
376 ln $(GDB_DOC_SOURCE_INCLUDES) . || \
377 cp $(GDB_DOC_SOURCE_INCLUDES) . ; \
c906108c
SS
378 fi
379 touch links2roff
380
c906108c 381# gdb manual suitable for [gtn]roff -me
b0787093 382gdb.me: $(GDB_DOC_FILES) links2roff
c906108c
SS
383 sed -e '/\\input texinfo/d' \
384 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
385 -e '/^@ifinfo/,/^@end ifinfo/d' \
386 -e '/^@c /d' \
387 -e 's/{.*,,/{/' \
388 -e 's/@ / /g' \
389 -e 's/^@alphaenumerate/@enumerate/g' \
390 -e 's/^@end alphaenumerate/@end enumerate/g' \
391 $(srcdir)/gdb.texinfo | \
392 $(TEXI2ROFF) -me | \
393 sed -e 's/---/\\(em/g' \
394 >gdb.me
395
396# gdb manual suitable for [gtn]roff -ms
b0787093 397gdb.ms: $(GDB_DOC_FILES) links2roff
c906108c
SS
398 sed -e '/\\input texinfo/d' \
399 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
400 -e '/^@ifinfo/,/^@end ifinfo/d' \
401 -e '/^@c /d' \
402 -e 's/{.*,,/{/' \
403 -e 's/@ / /g' \
404 -e 's/^@alphaenumerate/@enumerate/g' \
405 -e 's/^@end alphaenumerate/@end enumerate/g' \
406 $(srcdir)/gdb.texinfo | \
407 $(TEXI2ROFF) -ms | \
408 sed -e 's/---/\\(em/g' \
409 >gdb.ms
410
411# gdb manual suitable for [tn]roff -mm
412# '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
413# try leaving them in
b0787093 414gdb.mm: $(GDB_DOC_FILES) links2roff
c906108c
SS
415 sed -e '/\\input texinfo/d' \
416 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
417 -e '/^@ifinfo/,/^@end ifinfo/d' \
418 -e '/^@c /d' \
419 -e 's/{.*,,/{/' \
420 -e '/@noindent/d' \
421 -e 's/@ / /g' \
422 -e 's/^@alphaenumerate/@enumerate/g' \
423 -e 's/^@end alphaenumerate/@end enumerate/g' \
424 $(srcdir)/gdb.texinfo | \
425 $(TEXI2ROFF) -mm | \
426 sed -e 's/---/\\(em/g' \
427 >gdb.mm
428
085dd6e6
JM
429# GDB MANUAL: HTML file
430
2b831889 431gdb/index.html: ${GDB_DOC_FILES}
7162c0ca 432 $(MAKEHTML) $(MAKEHTMLFLAGS) -I ${READLINE_DIR} -I ${GDBMI_DIR} -I $(srcdir) $(srcdir)/gdb.texinfo
085dd6e6 433
46d8b1c3
AC
434# Clean these up before each run. Avoids a catch 22 with not being
435# able to re-generate these files (to fix a corruption) because these
436# files contain a corruption.
b0787093
AC
437GDBINT_TEX_TMPS = gdbint.aux gdbint.cp* gdbint.fn* gdbint.ky* \
438 gdbint.log gdbint.pg* gdbint.toc gdbint.tp* gdbint.vr*
439
c906108c 440# GDB INTERNALS MANUAL: TeX dvi file
b0787093
AC
441gdbint.dvi: $(GDBINT_DOC_FILES)
442 rm -f $(GDBINT_TEX_TMPS)
be298bcc 443 $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/gdbint.texinfo
c906108c
SS
444
445gdbint.ps : gdbint.dvi
446 $(DVIPS) -o $@ $?
447
b0787093
AC
448gdbint.pdf: $(GDBINT_DOC_FILES)
449 rm -f $(GDBINT_TEX_TMPS)
be298bcc 450 $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/gdbint.texinfo
449f3b6c 451
c906108c
SS
452# GDB INTERNALS MANUAL: info file
453
b0787093 454gdbint.info: $(GDBINT_DOC_FILES)
aab4e0ec 455 $(MAKEINFO) -I $(srcdir) -o gdbint.info $(srcdir)/gdbint.texinfo
c906108c 456
085dd6e6
JM
457# GDB INTERNALS MANUAL: HTML file
458
2b831889 459gdbint/index.html: $(GDBINT_DOC_FILES)
085dd6e6
JM
460 $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/gdbint.texinfo
461
b0787093 462stabs.info: $(STABS_DOC_FILES)
e5249f67 463 $(MAKEINFO) -I $(srcdir) -o stabs.info $(srcdir)/stabs.texinfo
c906108c 464
085dd6e6
JM
465# STABS DOCUMENTATION: HTML file
466
2b831889 467stabs/index.html: $(STABS_DOC_FILES)
085dd6e6
JM
468 $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/stabs.texinfo
469
46d8b1c3
AC
470# Clean these up before each run. Avoids a catch 22 with not being
471# able to re-generate these files (to fix a corruption) because these
472# files contain a corruption.
b0787093
AC
473STABS_TEX_TMPS = stabs.aux stabs.cp* stabs.fn* stabs.ky* \
474 stabs.log stabs.pg* stabs.toc stabs.tp* stabs.vr*
475
c906108c 476# STABS DOCUMENTATION: TeX dvi file
b0787093
AC
477stabs.dvi : $(STABS_DOC_FILES)
478 rm -f $(STABS_TEX_TMPS)
be298bcc 479 $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/stabs.texinfo
c906108c
SS
480
481stabs.ps: stabs.dvi
482 $(DVIPS) -o $@ $?
483
b0787093
AC
484stabs.pdf: $(STABS_DOC_FILES)
485 rm -f $(STABS_TEX_TMPS)
be298bcc 486 $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/stabs.texinfo
449f3b6c 487
e6f672d2
AC
488# Clean these up before each run. Avoids a catch 22 with not being
489# able to re-generate these files (to fix a corruption) because these
490# files contain a corruption.
491ANNOTATE_TEX_TMPS = annotate.aux annotate.cp* annotate.fn* annotate.ky* \
492 annotate.log annotate.pg* annotate.toc annotate.tp* annotate.vr*
493
494# ANNOTATE DOCUMENTATION: TeX dvi file
495annotate.dvi : $(ANNOTATE_DOC_FILES)
496 rm -f $(ANNOTATE_TEX_TMPS)
497 $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/annotate.texinfo
498
499annotate.ps: annotate.dvi
500 $(DVIPS) -o $@ $?
501
502annotate.pdf: $(ANNOTATE_DOC_FILES)
503 rm -f $(ANNOTATE_TEX_TMPS)
504 $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/annotate.texinfo
505
506annotate.info: $(ANNOTATE_DOC_FILES)
507 $(MAKEINFO) -I $(srcdir) -o annotate.info $(srcdir)/annotate.texinfo
508
2b831889 509annotate/index.html: $(ANNOTATE_DOC_FILES)
e6f672d2
AC
510 $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/annotate.texinfo
511
c906108c
SS
512force:
513
a4ce5b0d 514Makefile: Makefile.in $(host_makefile_frag) config.status
c906108c 515 $(SHELL) ./config.status
46d8b1c3
AC
516
517
518# The "least clean" level of cleaning. Get rid of files which are
519# automatically generated files that are just intermediate files,
520
521mostlyclean:
522 rm -f gdb.mm gdb.ms gdb.me links2roff
523 rm -f $(GDB_TEX_TMPS)
524 rm -f $(GDBINT_TEX_TMPS)
525 rm -f $(STABS_TEX_TMPS)
e6f672d2 526 rm -f $(ANNOTATE_TEX_TMPS)
46d8b1c3
AC
527 rm -f sedref.dvi sedref.tex tmp.sed
528
529clean: mostlyclean
530 rm -f gdb-cfg.texi
531
532distclean: clean
d7f4a264 533 rm -f Makefile config.status config.log
46d8b1c3
AC
534
535# GDBvn.texi, the dvi files, the info files, and the postscript files,
536# are all part of the distribution, so it should not be removed by
537# "clean" or "distclean". Use maintainer-clean to remove them.
538
539maintainer-clean realclean: distclean
540 rm -f GDBvn.texi *.info* *.dvi *.ps *.html *.pdf
541
35db0260 542install: install-info
c166cdc7
EZ
543
544uninstall: uninstall-info
This page took 0.59497 seconds and 4 git commands to generate.