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