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