]>
Commit | Line | Data |
---|---|---|
1eb988b9 RP |
1 | ##Copyright (C) 1991 Free Software Foundation, Inc. |
2 | ||
3 | # Makefile for GDB documentation. | |
4 | # This file is part of GDB. | |
5 | ||
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 2 of the License, or | |
9 | # (at your option) any later version. | |
10 | # | |
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. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License | |
17 | # along with this program; if not, write to the Free Software | |
18 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
19 | ||
20 | # main GDB source directory | |
21 | srcdir = .. | |
22 | ||
23 | # Documentation (gdb.dvi) needs either GNU m4 or SysV m4; | |
24 | # Berkeley/Sun don't have quite enough. | |
25 | #M4=/usr/5bin/m4 | |
26 | M4=gm4 | |
27 | ||
28 | # where to find texinfo; GDB dist should include a recent one | |
29 | TEXIDIR=${srcdir}/../texinfo/fsf | |
30 | ||
31 | # where to find makeinfo, preferably one designed for texinfo-2 | |
32 | MAKEINFO=makeinfo | |
33 | ||
34 | # Where is the source dir for the READLINE library? Traditionally in .. or . | |
35 | # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.) | |
36 | READLINE_DIR = ${srcdir}/../readline | |
37 | ||
38 | # Main GDB manual's source files | |
39 | SFILES_DOCDIR = \ | |
40 | gdb.texinfo pretex.m4 none.m4 all.m4 gdbinv-m.m4 gdbinv-s.m4 gdbVN.m4 | |
41 | ||
42 | all: gdb.info gdb.dvi refcard.dvi gdb-internals gdbint.dvi | |
43 | ||
44 | clean: | |
45 | rm -f gdb.dvi rdl-apps.texi gdb-all* gdb.info* gdbVN.m4 | |
46 | rm -f gdb-internals gdbint.?? gdbint.??? | |
47 | rm -f refcard.ps refcard.dvi rcfonts.tex refcard.log *~ | |
48 | ||
49 | # GDB QUICK REFERENCE (TeX dvi file, CM fonts) | |
50 | refcard.dvi : refcard.tex | |
51 | rm -f rcfonts.tex; cp rc-cm.tex rcfonts.tex | |
52 | TEXINPUTS=.:$$TEXINPUTS tex refcard.tex; rm -f refcard.log | |
53 | rm -f rcfonts.tex | |
54 | ||
55 | # GDB QUICK REFERENCE (PostScript output, common PS fonts) | |
56 | refcard.ps : refcard.tex | |
57 | rm -f rcfonts.tex; cp rc-ps.tex rcfonts.tex | |
58 | TEXINPUTS=.:$$TEXINPUTS tex refcard.tex | |
59 | dvips -t landscape refcard -o; rm -f refcard.dvi refcard.log | |
60 | rm -f rcfonts.tex | |
61 | ||
62 | # Cover file for "Readline" appendices | |
63 | rdl-apps.texi: ${READLINE_DIR}/inc-readline.texinfo \ | |
64 | ${READLINE_DIR}/inc-history.texinfo | |
65 | rm -f rdl-apps.texi | |
66 | echo "@include ${READLINE_DIR}/inc-readline.texinfo" >rdl-apps.texi | |
67 | echo "@include ${READLINE_DIR}/inc-history.texinfo" >>rdl-apps.texi | |
68 | ||
69 | # File to record current GDB version number (copied from main dir Makefile.in) | |
70 | gdbVN.m4 : ${srcdir}/Makefile.in | |
71 | ( VER=`sed <${srcdir}/Makefile.in -n 's/VERSION = //p'` ;\ | |
72 | echo "_define__(<_GDB_VN__>,$$VER)" > gdbVN.m4 ) | |
73 | ||
74 | # GDB MANUAL: texinfo source, created by preprocessing w/m4 | |
75 | # Be sure to not create a bad gdb-all.texi if ${M4} is missing or aborts... | |
76 | gdb-all.texi: ${SFILES_DOCDIR} | |
77 | rm -f foobus.texinfo | |
78 | ${M4} pretex.m4 none.m4 all.m4 gdb.texinfo >foobus.texinfo | |
79 | rm -f gdb-all.texi | |
80 | mv foobus.texinfo gdb-all.texi | |
81 | ||
82 | # GDB MANUAL: TeX dvi file | |
83 | gdb.dvi : gdb-all.texi rdl-apps.texi | |
84 | TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdb-all.texi | |
85 | texindex gdb-all.?? | |
86 | TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdb-all.texi | |
87 | mv gdb-all.dvi gdb.dvi | |
88 | rm -f gdb-all.?? gdb-all.??? | |
89 | ||
90 | # GDB MANUAL: info file | |
91 | # We're using texinfo2, and older makeinfo's may not be able to | |
92 | # cope with all the markup. In the meantime, we distribute the info | |
93 | # files | |
94 | gdb.info: gdb-all.texi | |
95 | ${MAKEINFO} gdb-all.texi | |
96 | ||
97 | # GDB INTERNALS MANUAL: TeX dvi file | |
98 | gdbint.dvi : gdbint.texinfo | |
99 | TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdbint.texinfo | |
100 | texindex gdbint.?? | |
101 | TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdbint.texinfo | |
102 | rm -f gdbint.?? gdbint.aux gdbint.cps gdbint.fns gdbint.kys \ | |
103 | gdbint.log gdbint.pgs gdbint.toc gdbint.tps gdbint.vrs | |
104 | ||
105 | # GDB INTERNALS MANUAL: info file | |
106 | gdb-internals : gdbint.texinfo | |
107 | ${MAKEINFO} gdbint.texinfo | |
108 | ||
109 | ||
110 | ||
111 |