1 ##Copyright (C) 1991-2013 Free Software Foundation, Inc.
3 # Makefile for GDB documentation.
4 # This file is part of GDB.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 datarootdir
= @datarootdir@
30 man1dir = $(mandir)/man1
31 man5dir = $(mandir)/man5
38 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
39 INSTALL_DATA
= @INSTALL_DATA@
41 SYSTEM_GDBINIT
= @SYSTEM_GDBINIT@
43 mkinstalldirs
= $(SHELL
) $(srcdir)/..
/..
/mkinstalldirs
45 # main GDB source directory
48 # where to find texinfo; GDB dist should include a recent one
49 TEXIDIR
=${gdbdir}/..
/texinfo
51 # where to find makeinfo, preferably one designed for texinfo-2
53 MAKEINFOFLAGS
= @MAKEINFOFLAGS@
54 MAKEINFO_EXTRA_FLAGS
= @MAKEINFO_EXTRA_FLAGS@
55 MAKEINFO_CMD
= $(MAKEINFO
) $(MAKEINFOFLAGS
) $(MAKEINFO_EXTRA_FLAGS
)
57 MAKEHTML
= $(MAKEINFO_CMD
) --html
60 # where to find texi2roff, ditto
63 # where to find texi2dvi, ditto
66 # Package version and bug-reporting URL.
67 PKGVERSION
= @PKGVERSION@
68 BUGURL_TEXI
= @REPORT_BUGS_TEXI@
70 # Where is the source dir for the READLINE library doc?
71 # Traditionally readline is in .. or .
72 READLINE_DIR
= ${gdbdir}/..
/readline
/doc
73 READLINE_TEXI_INCFLAG
= @READLINE_TEXI_INCFLAG@
75 # The GDB/MI docs come from a sibling directory ../mi
76 GDBMI_DIR
= ${gdbdir}/mi
79 TEXINPUTS
=${TEXIDIR}:.
:$(srcdir):$(READLINE_DIR
):$(GDBMI_DIR
):$$TEXINPUTS
81 # Files which should be generated via 'info' and installed by 'install-info'
82 INFO_DEPS
= gdb.
info gdbint.
info stabs.
info annotate.
info
84 # Files which should be generated via 'pdf' and installed by 'install-pdf'
85 PDFFILES
= gdb.pdf gdbint.pdf stabs.pdf refcard.pdf annotate.pdf
86 # Files which should be generated via 'html' and installed by 'install-html'
87 HTMLFILES
= gdb
/index.html gdbint
/index.html stabs
/index.html annotate
/index.html
88 HTMLFILES_INSTALL
= gdb gdbint stabs annotate
90 # There may be alternate predefined collections of switches to configure
91 # the GDB manual. Normally this is not done in synch with the software
92 # config system, since this choice tends to be independent; most people
93 # want a doc config of `all' for a generic manual, regardless of sw config.
96 # This list of sed edits will edit the GDB reference card
97 # for what fonts and what papersize to use.
98 # By default (NO edits applied), the refcard uses:
99 # - Computer Modern (CM) fonts
100 # - US letter paper (8.5x11in)
101 # List some of the following files for alternative fonts and paper:
102 # a4rc.sed use A4 paper (297 x 210 mm)
103 # psrc.sed use PostScript fonts (Karl Berry short TeX names)
104 # lpsrc.sed use PostScript fonts (full PostScript names in TeX)
105 # e.g. for A4, Postscript: REFEDITS = a4rc.sed psrc.sed
106 # for A4, CM fonts: REFEDITS = a4rc.sed
107 # for US, PS fonts: REFEDITS = psrc.sed
111 # Don Knuth's TeX formatter
115 # Program to generate Postscript files from DVI files.
119 # Note that this unconditionally includes the readline texi files,
120 # even when --with-system-readline is used. This is harmless because
121 # these are only used as dependencies.
122 GDB_DOC_SOURCE_INCLUDES
= \
125 $(srcdir)/agentexpr.texi \
126 $(READLINE_DIR
)/rluser.texi \
127 $(READLINE_DIR
)/hsuser.texi
128 GDB_DOC_BUILD_INCLUDES
= \
132 $(srcdir)/gdb.texinfo \
133 $(GDB_DOC_SOURCE_INCLUDES
) \
134 $(GDB_DOC_BUILD_INCLUDES
)
137 GDBINT_DOC_SOURCE_INCLUDES
= \
139 $(srcdir)/observer.texi
140 GDBINT_DOC_BUILD_INCLUDES
= \
144 $(srcdir)/gdbint.texinfo \
145 $(GDBINT_DOC_SOURCE_INCLUDES
) \
146 $(GDBINT_DOC_BUILD_INCLUDES
)
148 # Stabs manual: All files
149 STABS_DOC_SOURCE_INCLUDES
= \
151 STABS_DOC_BUILD_INCLUDES
=
153 $(srcdir)/stabs.texinfo \
154 $(STABS_DOC_SOURCE_INCLUDES
) \
155 $(STABS_DOC_BUILD_INCLUDES
)
157 # Annotate migration document
158 ANNOTATE_DOC_SOURCE_INCLUDES
= \
160 ANNOTATE_DOC_BUILD_INCLUDES
= \
163 ANNOTATE_DOC_FILES
= \
164 $(srcdir)/annotate.texinfo \
165 $(ANNOTATE_DOC_SOURCE_INCLUDES
) \
166 $(ANNOTATE_DOC_BUILD_INCLUDES
)
168 # Options to extract the man page from gdb.texinfo
171 TEXI2POD
= perl
$(srcdir)/..
/..
/etc
/texi2pod.pl \
172 $(MAKEINFOFLAGS
) $(MAKEINFO_EXTRA_FLAGS
)
174 POD2MAN1
= pod2man
--center
="GNU Development Tools" \
175 --release
="gdb-`sed q $(srcdir)/../version.in`" --section
=1
176 POD2MAN5
= pod2man
--center
="GNU Development Tools" \
177 --release
="gdb-`sed q $(srcdir)/../version.in`" --section
=5
179 # List of man pages generated from gdb.texi
180 MAN1S
= gdb
.1 gdbserver
.1 gcore
.1
182 MANS
= $(MAN1S
) $(MAN5S
)
184 # Host-dependent makefile fragment comes in here.
186 # End of host-dependent makefile fragment
187 HAVE_NATIVE_GCORE_TARGET
= @HAVE_NATIVE_GCORE_TARGET@
194 dvi: gdb.
dvi gdbint.
dvi stabs.
dvi refcard.
dvi annotate.
dvi
195 ps
: gdb.ps gdbint.ps stabs.ps refcard.ps annotate.ps
199 all-doc
: info dvi ps
# pdf
201 rm -f gdb-cfg.texi GDBvn.texi
203 install-info
: $(INFO_DEPS
)
204 $(SHELL
) $(srcdir)/..
/..
/mkinstalldirs
$(DESTDIR
)$(infodir)
205 @list
='$(INFO_DEPS)'; \
206 for file in
$$list; do \
207 if
test -f
$$file; then d
=.
; else d
=$(srcdir); fi
; \
208 for ifile in
`cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
209 if
test -f
$$d/$$ifile; then \
210 echo
" $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
211 $(INSTALL_DATA
) $$d/$$ifile $(DESTDIR
)$(infodir)/$$ifile; \
216 @if
$(SHELL
) -c
'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev
/null
2>&1; then \
217 list
='$(INFO_DEPS)'; \
218 for file in
$$list; do \
219 echo
" install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
220 install-info
--info-dir
=$(DESTDIR
)$(infodir) $(DESTDIR
)$(infodir)/$$file ||
:;\
226 @if
$(SHELL
) -c
'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev
/null
2>&1; then \
229 list
='$(INFO_DEPS)'; \
230 for file in
$$list; do \
232 || install-info
--info-dir
=$(DESTDIR
)$(infodir) --remove
$$file; \
235 list
='$(INFO_DEPS)'; \
236 for file in
$$list; do \
237 (cd
$(DESTDIR
)$(infodir) && rm -f
$$file $$file-[0-9] $$file-[0-9][0-9]); \
240 html__strip_dir
= `echo $$p | sed -e 's|^.*/||'`;
242 install-html
: $(HTMLFILES
)
244 test -z
"$(htmldir)" ||
$(mkinstalldirs
) "$(DESTDIR)$(htmldir)"
245 @list
='$(HTMLFILES_INSTALL)'; for p in
$$list; do \
246 if
test -f
"$$p" ||
test -d
"$$p"; then d
=""; else d
="$(srcdir)/"; fi
; \
247 f
=$(html__strip_dir
) \
248 if
test -d
"$$d$$p"; then \
249 echo
" $(mkinstalldirs) '$(DESTDIR)$(htmldir)/$$f'"; \
250 $(mkinstalldirs
) "$(DESTDIR)$(htmldir)/$$f" || exit
1; \
251 echo
" $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
252 $(INSTALL_DATA
) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
254 echo
" $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
255 $(INSTALL_DATA
) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
259 pdf__strip_dir
= `echo $$p | sed -e 's|^.*/||'`;
261 install-pdf
: $(PDFFILES
)
263 test -z
"$(pdfdir)" ||
$(mkinstalldirs
) "$(DESTDIR)$(pdfdir)"
264 @list
='$(PDFFILES)'; for p in
$$list; do \
265 if
test -f
"$$p"; then d
=; else d
="$(srcdir)/"; fi
; \
266 f
=$(pdf__strip_dir
) \
267 echo
" $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
268 $(INSTALL_DATA
) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
271 install-man
: install-man1 install-man5
273 install-man1
: $(MAN1S
)
274 test -z
"$(man1dir)" ||
$(mkinstalldirs
) "$(DESTDIR)$(man1dir)"
275 @list
='$(MAN1S)'; for p in
$$list; do \
276 if
test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" = x \
277 -a
"$$p" = gcore
.1; then \
280 if
test -f
"$$p"; then d
=; else d
="$(srcdir)/"; fi
; \
281 f
=`echo $$p | sed -e 's|^.*/||'`; \
282 echo
" $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(man1dir)/$$f'"; \
283 $(INSTALL_DATA
) "$$d$$p" "$(DESTDIR)$(man1dir)/$$f"; \
286 install-man5
: $(MAN5S
)
287 test -z
"$(man5dir)" ||
$(mkinstalldirs
) "$(DESTDIR)$(man5dir)"
288 @list
='$(MAN5S)'; for p in
$$list; do \
289 if
test -f
"$$p"; then d
=; else d
="$(srcdir)/"; fi
; \
290 f
=`echo $$p | sed -e 's|^.*/||'`; \
291 echo
" $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(man5dir)/$$f'"; \
292 $(INSTALL_DATA
) "$$d$$p" "$(DESTDIR)$(man5dir)/$$f"; \
295 uninstall-man
: uninstall-man1 uninstall-man5
298 @
test -n
"$(man1dir)" || exit
0; \
299 files
=`{ l2='$(MAN1S)'; for i in $$l2; do \
300 if test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" = x \
301 -a "$$i" = gcore.1; then \
306 sed -n '/\.1[a-z]*$$/p'; \
307 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
308 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
309 test -z
"$$files" ||
{ \
310 echo
" ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
311 cd
"$(DESTDIR)$(man1dir)" && rm -f
$$files; }
314 @
test -n
"$(man5dir)" || exit
0; \
315 files
=`{ l2='$(MAN5S)'; for i in $$l2; do echo "$$i"; done | \
316 sed -n '/\.5[a-z]*$$/p'; \
317 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
318 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
319 test -z
"$$files" ||
{ \
320 echo
" ( cd '$(DESTDIR)$(man5dir)' && rm -f" $$files ")"; \
321 cd
"$(DESTDIR)$(man5dir)" && rm -f
$$files; }
323 STAGESTUFF
= *.
info* gdb-all.texi GDBvn.texi
*.ps
*.
dvi *.pdf
*.1 *.5
325 # Copy the object files from a particular stage into a subdirectory.
328 -mv
$(STAGESTUFF
) stage1
332 -mv
$(STAGESTUFF
) stage2
336 -mv
$(STAGESTUFF
) stage3
341 for i in
$(STAGESTUFF
) ; do cmp
$$i $(against
)/$$i ; done
344 -(cd stage1
; mv
-f
* ..
)
348 -(cd stage2
; mv
-f
* ..
)
352 -(cd stage3
; mv
-f
* ..
)
355 # GDB QUICK REFERENCE (dvi output)
356 refcard.
dvi : refcard.
tex $(REFEDITS
)
358 for f in x
$(REFEDITS
) ; do \
359 test x
$$f = xx
&& continue
; \
360 cat
$(srcdir)/$$f >>tmp.sed
; \
362 sed
-f tmp.sed
$(srcdir)/refcard.
tex >sedref.
tex
363 $(SET_TEXINPUTS
) $(TEX
) sedref.
tex
364 mv sedref.
dvi refcard.
dvi
365 rm -f sedref.log sedref.
tex tmp.sed
367 refcard.ps
: refcard.
dvi
368 $(DVIPS
) -t landscape
-o
$@
$?
370 refcard.pdf
: refcard.
tex $(REFEDITS
)
372 for f in x
$(REFEDITS
) ; do \
373 test x
$$f = xx
&& continue
; \
374 cat
$(srcdir)/$$f >>tmp.sed
; \
376 sed
-f tmp.sed
$(srcdir)/refcard.
tex >sedref.
tex
377 $(SET_TEXINPUTS
) $(PDFTEX
) sedref.
tex
378 mv sedref.pdf refcard.pdf
379 rm -f sedref.log sedref.
tex tmp.sed
381 # File to record current GDB version number (copied from main dir version.in)
382 GDBvn.texi
: ${gdbdir}/version.in
383 echo
"@set GDBVN `sed q $(srcdir)/../version.in`" > .
/GDBvn.new
384 if
[ -n
"$(PKGVERSION)" ]; then \
385 echo
"@set VERSION_PACKAGE $(PKGVERSION)" >> .
/GDBvn.new
; \
387 echo
"@set BUGURL $(BUGURL_TEXI)" >> .
/GDBvn.new
388 if
[ "$(BUGURL_TEXI)" = "@uref{http://www.gnu.org/software/gdb/bugs/}" ]; then \
389 echo
"@set BUGURL_DEFAULT" >> .
/GDBvn.new
; \
391 if
test -z
"$(READLINE_TEXI_INCFLAG)"; then \
392 echo
"@set SYSTEM_READLINE" >> .
/GDBvn.new
; \
394 if
[ -n
"$(SYSTEM_GDBINIT)" ]; then \
395 echo
"@set SYSTEM_GDBINIT $(SYSTEM_GDBINIT)" >> .
/GDBvn.new
; \
397 mv GDBvn.new GDBvn.texi
400 .PRECIOUS
: GDBvn.texi
402 # Choose configuration for GDB manual (normally `all'; normally not tied into
403 # `configure' script because most users prefer generic version of manual,
404 # not one for their binary config---which may not be specifically
406 gdb-cfg.texi
: ${srcdir}/${DOC_CONFIG}-cfg.texi
407 (test "$(LN_S)" = "ln -s" && \
408 ln
-s
${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi
) || \
409 ln
${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \
410 cp
${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi
412 # GDB MANUAL: texinfo source, using @set/@clear/@value/@ifset/@ifclear
413 # If your texinfo or makeinfo don't support these, get a new texinfo release
415 # The nonsense with GDBvn.texi gets this to run with both Sun and GNU make.
416 # Note that we can *generate* GDBvn.texi, but since we distribute one in the
417 # source directory for the benefit of people who *don't* use this makefile,
418 # VPATH will often tell make not to bother building it, because the one
419 # in the srcdir is up to date. (if not, then make should build one here).
421 # Clean these up before each run. Avoids a catch 22 with not being
422 # able to re-generate these files (to fix a corruption) because these
423 # files contain a corruption.
424 GDB_TEX_TMPS
= gdb.aux gdb.cp
* gdb.fn
* gdb.ky
* gdb.log gdb.pg
* gdb.toc \
427 # GDB MANUAL: TeX dvi file
428 gdb.
dvi: ${GDB_DOC_FILES}
429 if
[ ! -f .
/GDBvn.texi
]; then \
430 (test "$(LN_S)" = "ln -s" && ln
-s
$(srcdir)/GDBvn.texi .
) || \
431 ln
$(srcdir)/GDBvn.texi . || \
432 cp
$(srcdir)/GDBvn.texi .
; else true
; fi
433 rm -f
$(GDB_TEX_TMPS
)
434 $(TEXI2DVI
) $(READLINE_TEXI_INCFLAG
) -I
${GDBMI_DIR} -I
$(srcdir) \
435 $(srcdir)/gdb.texinfo
440 gdb.pdf
: ${GDB_DOC_FILES}
441 if
[ ! -f .
/GDBvn.texi
]; then \
442 (test "$(LN_S)" = "ln -s" && ln
-s
$(srcdir)/GDBvn.texi .
) || \
443 ln
$(srcdir)/GDBvn.texi . || \
444 cp
$(srcdir)/GDBvn.texi .
; else true
; fi
445 rm -f
$(GDB_TEX_TMPS
)
446 $(TEXI2DVI
) --pdf
$(READLINE_TEXI_INCFLAG
) -I
${GDBMI_DIR} -I
$(srcdir) \
447 $(srcdir)/gdb.texinfo
449 # GDB MANUAL: info file
450 gdb.
info: ${GDB_DOC_FILES}
451 $(MAKEINFO_CMD
) $(READLINE_TEXI_INCFLAG
) -I
${GDBMI_DIR} -I
$(srcdir) \
452 -o gdb.
info $(srcdir)/gdb.texinfo
454 # GDB MANUAL: roff translations
455 # Try to use a recent texi2roff. v2 was put on prep in jan91.
456 # If you want an index, see texi2roff doc for postprocessing
457 # and add -i to texi2roff invocations below.
458 # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
459 # corresponding -e lines when later texi2roff's are current)
460 # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
461 # + @c's deleted explicitly because texi2roff sees texinfo commands in them
462 # + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
463 # + @alphaenumerate is ridiculously new, turned into @enumerate
465 # texi2roff doesn't have a notion of include dirs, so we have to fake
466 # it out for gdb manual's include files---but only if not configured
468 links2roff
: $(GDB_DOC_SOURCE_INCLUDES
)
469 if
[ ! -f gdb.texinfo
]; then \
470 (test "$(LN_S)" = "ln -s" && ln
-s
$(GDB_DOC_SOURCE_INCLUDES
) .
) || \
471 ln
$(GDB_DOC_SOURCE_INCLUDES
) . || \
472 cp
$(GDB_DOC_SOURCE_INCLUDES
) .
; \
476 # gdb manual suitable for [gtn]roff -me
477 gdb.me
: $(GDB_DOC_FILES
) links2roff
478 sed
-e
'/\\input texinfo/d' \
479 -e
'/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
480 -e
'/^@ifinfo/,/^@end ifinfo/d' \
484 -e
's/^@alphaenumerate/@enumerate/g' \
485 -e
's/^@end alphaenumerate/@end enumerate/g' \
486 $(srcdir)/gdb.texinfo | \
488 sed
-e
's/---/\\(em/g' \
491 # gdb manual suitable for [gtn]roff -ms
492 gdb.ms
: $(GDB_DOC_FILES
) links2roff
493 sed
-e
'/\\input texinfo/d' \
494 -e
'/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
495 -e
'/^@ifinfo/,/^@end ifinfo/d' \
499 -e
's/^@alphaenumerate/@enumerate/g' \
500 -e
's/^@end alphaenumerate/@end enumerate/g' \
501 $(srcdir)/gdb.texinfo | \
503 sed
-e
's/---/\\(em/g' \
506 # gdb manual suitable for [tn]roff -mm
507 # '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
508 # try leaving them in
509 gdb.mm
: $(GDB_DOC_FILES
) links2roff
510 sed
-e
'/\\input texinfo/d' \
511 -e
'/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
512 -e
'/^@ifinfo/,/^@end ifinfo/d' \
517 -e
's/^@alphaenumerate/@enumerate/g' \
518 -e
's/^@end alphaenumerate/@end enumerate/g' \
519 $(srcdir)/gdb.texinfo | \
521 sed
-e
's/---/\\(em/g' \
524 # GDB MANUAL: HTML file
526 gdb
/index.html
: ${GDB_DOC_FILES}
527 $(MAKEHTML
) $(MAKEHTMLFLAGS
) $(READLINE_TEXI_INCFLAG
) -I
${GDBMI_DIR} -I
$(srcdir) $(srcdir)/gdb.texinfo
529 # Clean these up before each run. Avoids a catch 22 with not being
530 # able to re-generate these files (to fix a corruption) because these
531 # files contain a corruption.
532 GDBINT_TEX_TMPS
= gdbint.aux gdbint.cp
* gdbint.fn
* gdbint.ky
* \
533 gdbint.log gdbint.pg
* gdbint.toc gdbint.tp
* gdbint.vr
*
535 # GDB INTERNALS MANUAL: TeX dvi file
536 gdbint.
dvi: $(GDBINT_DOC_FILES
)
537 rm -f
$(GDBINT_TEX_TMPS
)
538 $(TEXI2DVI
) -I
$(srcdir) $(srcdir)/gdbint.texinfo
540 gdbint.ps
: gdbint.
dvi
543 gdbint.pdf
: $(GDBINT_DOC_FILES
)
544 rm -f
$(GDBINT_TEX_TMPS
)
545 $(TEXI2DVI
) --pdf
-I
$(srcdir) $(srcdir)/gdbint.texinfo
547 # GDB INTERNALS MANUAL: info file
549 gdbint.
info: $(GDBINT_DOC_FILES
)
550 $(MAKEINFO_CMD
) -I
$(srcdir) -o gdbint.
info $(srcdir)/gdbint.texinfo
552 # GDB INTERNALS MANUAL: HTML file
554 gdbint
/index.html
: $(GDBINT_DOC_FILES
)
555 $(MAKEHTML
) $(MAKEHTMLFLAGS
) -I
$(srcdir) $(srcdir)/gdbint.texinfo
557 stabs.
info: $(STABS_DOC_FILES
)
558 $(MAKEINFO_CMD
) -I
$(srcdir) -o stabs.
info $(srcdir)/stabs.texinfo
560 # STABS DOCUMENTATION: HTML file
562 stabs
/index.html
: $(STABS_DOC_FILES
)
563 $(MAKEHTML
) $(MAKEHTMLFLAGS
) -I
$(srcdir) $(srcdir)/stabs.texinfo
565 # Clean these up before each run. Avoids a catch 22 with not being
566 # able to re-generate these files (to fix a corruption) because these
567 # files contain a corruption.
568 STABS_TEX_TMPS
= stabs.aux stabs.cp
* stabs.fn
* stabs.ky
* \
569 stabs.log stabs.pg
* stabs.toc stabs.tp
* stabs.vr
*
571 # STABS DOCUMENTATION: TeX dvi file
572 stabs.
dvi : $(STABS_DOC_FILES
)
573 rm -f
$(STABS_TEX_TMPS
)
574 $(TEXI2DVI
) -I
$(srcdir) $(srcdir)/stabs.texinfo
579 stabs.pdf
: $(STABS_DOC_FILES
)
580 rm -f
$(STABS_TEX_TMPS
)
581 $(TEXI2DVI
) --pdf
-I
$(srcdir) $(srcdir)/stabs.texinfo
583 # Clean these up before each run. Avoids a catch 22 with not being
584 # able to re-generate these files (to fix a corruption) because these
585 # files contain a corruption.
586 ANNOTATE_TEX_TMPS
= annotate.aux annotate.cp
* annotate.fn
* annotate.ky
* \
587 annotate.log annotate.pg
* annotate.toc annotate.tp
* annotate.vr
*
589 # ANNOTATE DOCUMENTATION: TeX dvi file
590 annotate.
dvi : $(ANNOTATE_DOC_FILES
)
591 rm -f
$(ANNOTATE_TEX_TMPS
)
592 $(TEXI2DVI
) -I
$(srcdir) $(srcdir)/annotate.texinfo
594 annotate.ps
: annotate.
dvi
597 annotate.pdf
: $(ANNOTATE_DOC_FILES
)
598 rm -f
$(ANNOTATE_TEX_TMPS
)
599 $(TEXI2DVI
) --pdf
-I
$(srcdir) $(srcdir)/annotate.texinfo
601 annotate.
info: $(ANNOTATE_DOC_FILES
)
602 $(MAKEINFO_CMD
) -I
$(srcdir) -o annotate.
info $(srcdir)/annotate.texinfo
604 annotate
/index.html
: $(ANNOTATE_DOC_FILES
)
605 $(MAKEHTML
) $(MAKEHTMLFLAGS
) -I
$(srcdir) $(srcdir)/annotate.texinfo
608 gdb
.1: $(GDB_DOC_FILES
)
610 -$(TEXI2POD
) $(MANCONF
) -Dgdb
< $(srcdir)/gdb.texinfo
> gdb.pod
611 -($(POD2MAN1
) gdb.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
612 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
615 gdbserver
.1: $(GDB_DOC_FILES
)
617 -$(TEXI2POD
) $(MANCONF
) -Dgdbserver
< $(srcdir)/gdb.texinfo
> gdbserver.pod
618 -($(POD2MAN1
) gdbserver.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
619 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
622 gcore
.1: $(GDB_DOC_FILES
)
624 -$(TEXI2POD
) $(MANCONF
) -Dgcore
< $(srcdir)/gdb.texinfo
> gcore.pod
625 -($(POD2MAN1
) gcore.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
626 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
629 gdbinit
.5: $(GDB_DOC_FILES
)
631 -$(TEXI2POD
) $(MANCONF
) -Dgdbinit
< $(srcdir)/gdb.texinfo
> gdbinit.pod
632 -($(POD2MAN5
) gdbinit.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
633 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
638 Makefile
: Makefile.in
$(host_makefile_frag
) ..
/config.status
639 cd ..
&& $(SHELL
) .
/config.status doc
/Makefile
642 # The "least clean" level of cleaning. Get rid of files which are
643 # automatically generated files that are just intermediate files,
646 rm -f gdb.mm gdb.ms gdb.me links2roff
647 rm -f
$(GDB_TEX_TMPS
)
648 rm -f
$(GDBINT_TEX_TMPS
)
649 rm -f
$(STABS_TEX_TMPS
)
650 rm -f
$(ANNOTATE_TEX_TMPS
)
651 rm -f sedref.
dvi sedref.
tex tmp.sed
654 rm -f gdb-cfg.texi GDBvn.texi
659 # GDBvn.texi, the dvi files, the info files, and the postscript files,
660 # are all part of the distribution, so it should not be removed by
661 # "clean" or "distclean". Use maintainer-clean to remove them.
663 maintainer-clean
realclean: distclean
664 rm -f GDBvn.texi
*.
info* *.
dvi *.ps
*.html
*.pdf
$(MANS
)
666 install: install-info install-man
668 uninstall: uninstall-info uninstall-man