Rename them so that we can symlink them so that m4 can see them.
[deliverable/binutils-gdb.git] / gdb / doc / Makefile.in
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 srcdir = .
21
22 ddestdir = /usr/local
23 idestdir = $(ddestdir)
24
25 SHELL = /bin/sh
26
27 # main GDB source directory
28 gdbdir = ..
29
30 # Documentation (gdb.dvi) needs either GNU m4 or SysV m4;
31 # Berkeley/Sun don't have quite enough.
32 #M4=/usr/5bin/m4
33 M4=gm4
34
35 # where to find texinfo; GDB dist should include a recent one
36 TEXIDIR=$(srcdir)/${gdbdir}/../texinfo/fsf
37
38 # where to find makeinfo, preferably one designed for texinfo-2
39 MAKEINFO=makeinfo
40
41 # Where is the source dir for the READLINE library? Traditionally in .. or .
42 # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
43 READLINE_DIR = $(srcdir)/${gdbdir}/../readline
44
45 # Main GDB manual's source files
46 SFILES_DOCDIR = \
47 $(srcdir)/gdb.texinfo $(srcdir)/pretex.m4 $(srcdir)/none.m4 \
48 $(srcdir)/all.m4 gdbinv-m.m4 gdbinv-s.m4 gdbVN.m4
49
50 all install:
51
52 all-info: gdb.info gdbint.info
53 #all: gdb.info gdb.dvi refcard.dvi gdb-internals gdbint.dvi
54
55 install-info: all-info
56 for i in *.info* ; do \
57 echo Installing $$i... ; \
58 (cp $$i $(idestdir)/info/$$i.n \
59 && mv -f $(idestdir)/info/$$i.n $(idestdir)/info/$$i) \
60 || exit 1 ; \
61 done
62
63 clean:
64 rm -f gdb.dvi rdl-apps.texi gdb-all* gdb.info* gdbVN.m4
65 rm -f gdb-internals gdbint.?? gdbint.??? gdbint.info
66 rm -f refcard.ps refcard.dvi rcfonts.tex refcard.log *~
67
68 # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
69 refcard.dvi : refcard.tex
70 rm -f rcfonts.tex; cp rc-cm.tex rcfonts.tex
71 TEXINPUTS=.:$$TEXINPUTS tex refcard.tex; rm -f refcard.log
72 rm -f rcfonts.tex
73
74 # GDB QUICK REFERENCE (PostScript output, common PS fonts)
75 refcard.ps : refcard.tex
76 rm -f rcfonts.tex; cp rc-ps.tex rcfonts.tex
77 TEXINPUTS=.:$$TEXINPUTS tex refcard.tex
78 dvips -t landscape refcard -o; rm -f refcard.dvi refcard.log
79 rm -f rcfonts.tex
80
81 # Cover file for "Readline" appendices
82 rdl-apps.texi: ${READLINE_DIR}/inc-readline.texinfo \
83 ${READLINE_DIR}/inc-history.texinfo
84 rm -f rdl-apps.texi
85 echo "@include ${READLINE_DIR}/inc-readline.texinfo" >rdl-apps.texi
86 echo "@include ${READLINE_DIR}/inc-history.texinfo" >>rdl-apps.texi
87
88 # File to record current GDB version number (copied from main dir Makefile.in)
89 gdbVN.m4 : ${gdbdir}/Makefile.in
90 ( VER=`sed <$(srcdir)/${gdbdir}/Makefile.in -n 's/VERSION = //p'` ;\
91 echo "_define__(<_GDB_VN__>,$$VER)" > gdbVN.m4 )
92
93 # GDB MANUAL: texinfo source, created by preprocessing w/m4
94 # Be sure to not create a bad gdb-all.texi if ${M4} is missing or aborts...
95 gdb-all.texi: ${SFILES_DOCDIR}
96 rm -f foobus.texinfo
97 ${M4} $(srcdir)/pretex.m4 $(srcdir)/none.m4 $(srcdir)/all.m4 $(srcdir)/gdb.texinfo >foobus.texinfo
98 rm -f gdb-all.texi
99 mv foobus.texinfo gdb-all.texi
100
101 # GDB MANUAL: TeX dvi file
102 gdb.dvi : gdb-all.texi rdl-apps.texi
103 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdb-all.texi
104 texindex gdb-all.??
105 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdb-all.texi
106 mv gdb-all.dvi gdb.dvi
107 rm -f gdb-all.?? gdb-all.???
108
109 # GDB MANUAL: info file
110 # We're using texinfo2, and older makeinfo's may not be able to
111 # cope with all the markup. In the meantime, we distribute the info
112 # files
113 gdb.info: gdb-all.texi
114 $(MAKEINFO) -o gdb.info gdb-all.texi
115
116 # GDB INTERNALS MANUAL: TeX dvi file
117 gdbint.dvi : gdbint.texinfo
118 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdbint.texinfo
119 texindex gdbint.??
120 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex gdbint.texinfo
121 rm -f gdbint.?? gdbint.aux gdbint.cps gdbint.fns gdbint.kys \
122 gdbint.log gdbint.pgs gdbint.toc gdbint.tps gdbint.vrs
123
124 # GDB INTERNALS MANUAL: info file
125 gdb-internals: gdbint.info
126
127 gdbint.info: gdbint.texinfo
128 $(MAKEINFO) -o gdbint.info $(srcdir)/gdbint.texinfo
129
130 force:
131
132 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
133 $(SHELL) ./config.status
This page took 0.032661 seconds and 5 git commands to generate.