]> Git Repo - binutils.git/blame - gdb/doc/Makefile
Remove rcfonts.tex after building refcard.
[binutils.git] / gdb / doc / Makefile
CommitLineData
73dfae8d
RP
1##Copyright (C) 1991 Free Software Foundation, Inc.
2
3# This file is part of GDB.
4
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19# main GDB source directory
20srcdir = ..
21
22# Documentation (gdb.dvi) needs either GNU m4 or SysV m4;
23# Berkeley/Sun don't have quite enough.
24#M4=/usr/5bin/m4
25M4=gm4
26
27# where to find texinfo; GDB dist should include a recent one
28TEXIDIR=${srcdir}/../texinfo/fsf
29
30# where to find makeinfo, preferably one designed for texinfo-2
31MAKEINFO=makeinfo
32
33# Where is the source dir for the READLINE library? Traditionally in .. or .
34# (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
35READLINE_DIR = ${srcdir}/../readline
36
37# Main GDB manual's source files
38SFILES_DOCDIR = \
39 gdb.texinfo pretex.m4 none.m4 all.m4 gdbinv-m.m4 gdbinv-s.m4
40
41all: gdb.info gdb.dvi refcard.dvi gdb-internals gdbint.dvi
42
43clean:
8b5d2c4e 44 rm -f gdb.dvi rdl-apps.texi gdb-all* gdb.info*
73dfae8d
RP
45 rm -f gdb-internals gdbint.?? gdbint.???
46 rm -f refcard.ps refcard.dvi rcfonts.tex refcard.log *~
47
48# GDB QUICK REFERENCE (TeX dvi file, CM fonts)
49refcard.dvi : refcard.tex
50 rm -f rcfonts.tex; cp rc-cm.tex rcfonts.tex
51 TEXINPUTS=.:$$TEXINPUTS tex refcard.tex; rm -f refcard.log
006774c4 52 rm -f rcfonts.tex
73dfae8d
RP
53
54# GDB QUICK REFERENCE (PostScript output, common PS fonts)
55refcard.ps : refcard.tex
56 rm -f rcfonts.tex; cp rc-ps.tex rcfonts.tex
57 TEXINPUTS=.:$$TEXINPUTS tex refcard.tex
58 dvips -t landscape refcard -o; rm -f refcard.dvi refcard.log
006774c4 59 rm -f rcfonts.tex
73dfae8d
RP
60
61# Cover file for "Readline" appendices
8b5d2c4e 62rdl-apps.texi: ${READLINE_DIR}/inc-readline.texinfo \
73dfae8d 63 ${READLINE_DIR}/inc-history.texinfo
8b5d2c4e
RP
64 rm -f rdl-apps.texi
65 echo "@include ${READLINE_DIR}/inc-readline.texinfo" >rdl-apps.texi
66 echo "@include ${READLINE_DIR}/inc-history.texinfo" >>rdl-apps.texi
73dfae8d
RP
67
68# GDB MANUAL: texinfo source, created by preprocessing w/m4
fad60036
RP
69# Be sure to not create a bad gdb-all.texi if ${M4} is missing or aborts...
70gdb-all.texi: ${SFILES_DOCDIR}
73dfae8d
RP
71 rm -f foobus.texinfo
72 ${M4} pretex.m4 none.m4 all.m4 gdb.texinfo >foobus.texinfo
fad60036
RP
73 rm -f gdb-all.texi
74 mv foobus.texinfo gdb-all.texi
73dfae8d
RP
75
76# GDB MANUAL: TeX dvi file
fad60036
RP
77gdb.dvi : gdb-all.texi rdl-apps.texi
78 TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdb-all.texi
73dfae8d 79 texindex gdb-all.??
fad60036 80 TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdb-all.texi
73dfae8d
RP
81 mv gdb-all.dvi gdb.dvi
82 rm -f gdb-all.?? gdb-all.???
83
84# GDB MANUAL: info file
85# We're using texinfo2, and older makeinfo's may not be able to
86# cope with all the markup. In the meantime, we distribute the info
87# files
fad60036
RP
88gdb.info: gdb-all.texi
89 ${MAKEINFO} gdb-all.texi
73dfae8d
RP
90
91# GDB INTERNALS MANUAL: TeX dvi file
92gdbint.dvi : gdbint.texinfo
93 TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdbint.texinfo
94 texindex gdbint.??
95 TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdbint.texinfo
96 rm -f gdbint.?? gdbint.aux gdbint.cps gdbint.fns gdbint.kys \
97 gdbint.log gdbint.pgs gdbint.toc gdbint.tps gdbint.vrs
98
99# GDB INTERNALS MANUAL: info file
100gdb-internals : gdbint.texinfo
101 ${MAKEINFO} gdbint.texinfo
102
103
104
105
This page took 0.044083 seconds and 4 git commands to generate.