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