2002-08-24 Andrew Cagney <ac131313@redhat.com>

* Makefile.in (GDBINT_TEX_TMPS): Define.
	(gdbint.dvi, gdbint.pdf): Use
	(GDB_TEX_TMPS): Define.
	(gdb.dvi, gdb.pdf): Use.
	(STABS_TEX_TMPS): Define.
	(stabs.dvi, stabs.pdf): Use.
	(GDB_DOC_SOURCE_INCLUDES): New macros.
	(GDB_DOC_BUILD_INCLUDES, GDB_DOC_FILES): New macros.
	(GDBINT_DOC_FILES_INCLUDES): New macros.
	(GDBINT_DOC_BUILD_INCLUDES): New macros.
	(GDBINT_DOC_FILES, STABS_DOC_SOURCE_INCLUDES): New macros.
	(STABS_DOC_BUILD_INCLUDES, STABS_DOC_FILES): New macros.
	(SFILES_DOC, SFILES_INCLUDED, SFILES_LOCAL): Delete macros.
	(links2roff): Replace SFILES_INCLUDED with
	GDB_DOC_SOURCE_INCLUDES.
	(gdb.dvi, gdb_toc.html, gdb.pdf, gdb.info): Update dependencies.
	(gdb.me, gdb.mm, gdb.ms): Update dependencies.
	(gdbint.dvi, gdbint_toc.html, gdbint.pdf, gdbint.info): Update
	dependencies.
	(stabs.info, stabs_toc.html, stabs.pdf, stabs.dvi): Update
	dependencies.
	(gdbmi.texinfo): Delete rule.
	(inc-hist.texinfo): Delete rule.
	(rluser.texinfo): Delete rule.
This commit is contained in:
Andrew Cagney 2002-08-25 00:12:33 +00:00
parent 6e490d4203
commit b0787093b1
2 changed files with 98 additions and 59 deletions

View File

@ -1,3 +1,30 @@
2002-08-24 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (GDBINT_TEX_TMPS): Define.
(gdbint.dvi, gdbint.pdf): Use
(GDB_TEX_TMPS): Define.
(gdb.dvi, gdb.pdf): Use.
(STABS_TEX_TMPS): Define.
(stabs.dvi, stabs.pdf): Use.
(GDB_DOC_SOURCE_INCLUDES): New macros.
(GDB_DOC_BUILD_INCLUDES, GDB_DOC_FILES): New macros.
(GDBINT_DOC_FILES_INCLUDES): New macros.
(GDBINT_DOC_BUILD_INCLUDES): New macros.
(GDBINT_DOC_FILES, STABS_DOC_SOURCE_INCLUDES): New macros.
(STABS_DOC_BUILD_INCLUDES, STABS_DOC_FILES): New macros.
(SFILES_DOC, SFILES_INCLUDED, SFILES_LOCAL): Delete macros.
(links2roff): Replace SFILES_INCLUDED with
GDB_DOC_SOURCE_INCLUDES.
(gdb.dvi, gdb_toc.html, gdb.pdf, gdb.info): Update dependencies.
(gdb.me, gdb.mm, gdb.ms): Update dependencies.
(gdbint.dvi, gdbint_toc.html, gdbint.pdf, gdbint.info): Update
dependencies.
(stabs.info, stabs_toc.html, stabs.pdf, stabs.dvi): Update
dependencies.
(gdbmi.texinfo): Delete rule.
(inc-hist.texinfo): Delete rule.
(rluser.texinfo): Delete rule.
2002-08-23 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Update

View File

@ -96,16 +96,40 @@ TEX = tex
# Program to generate Postscript files from DVI files.
DVIPS = dvips
# Main GDB manual's source files
SFILES_INCLUDED = gdb-cfg.texi \
# Main GDB manual
GDB_DOC_SOURCE_INCLUDES = \
$(srcdir)/annotate.texi \
$(srcdir)/fdl.texi \
$(srcdir)/gpl.texi
$(srcdir)/gpl.texi \
$(GDBMI_DIR)/gdbmi.texinfo \
$(READLINE_DIR)/rluser.texinfo \
$(READLINE_DIR)/inc-hist.texinfo
GDB_DOC_BUILD_INCLUDES = \
gdb-cfg.texi \
GDBvn.texi
GDB_DOC_FILES = \
$(srcdir)/gdb.texinfo \
$(GDB_DOC_SOURCE_INCLUDES) \
$(GDB_DOC_BUILD_INCLUDES)
SFILES_LOCAL = $(srcdir)/gdb.texinfo GDBvn.texi $(SFILES_INCLUDED)
# Internals Manual
GDBINT_DOC_SOURCE_INCLUDES = \
$(srcdir)/fdl.texi
GDBINT_DOC_BUILD_INCLUDES = \
gdb-cfg.texi \
GDBvn.texi
GDBINT_DOC_FILES = \
$(srcdir)/gdbint.texinfo \
$(GDBINT_DOC_SOURCE_INCLUDES) \
$(GDBINT_DOC_BUILD_INCLUDES)
SFILES_DOC = $(SFILES_LOCAL) $(GDBMI_DIR)/gdbmi.texinfo \
$(READLINE_DIR)/rluser.texinfo $(READLINE_DIR)/inc-hist.texinfo
# Stabs manual: All files
STABS_DOC_SOURCE_INCLUDES =
STABS_DOC_BUILD_INCLUDES =
STABS_DOC_FILES = \
$(srcdir)/stabs.texinfo \
$(STABS_DOC_SOURCE_INCLUDES) \
$(STABS_DOC_BUILD_INCLUDES)
#### Host, target, and site specific Makefile fragments come in here.
###
@ -186,7 +210,7 @@ mostlyclean:
rm -f sedref.dvi sedref.tex tmp.sed
clean: mostlyclean
rm -f rluser.texinfo inc-hist.texinfo gdb-cfg.texi
rm -f gdb-cfg.texi
distclean: clean
rm -f Makefile config.status
@ -240,30 +264,33 @@ gdb-cfg.texi: ${srcdir}/${DOC_CONFIG}-cfg.texi
# VPATH will often tell make not to bother building it, because the one
# in the srcdir is up to date. (if not, then make should build one here).
GDB_TEX_TMPS = gdb.aux gdb.cp* gdb.fn* gdb.ky* gdb.log gdb.pg* gdb.toc \
gdb.tp* gdb.vr*
# GDB MANUAL: TeX dvi file
gdb.dvi: ${SFILES_DOC}
gdb.dvi: ${GDB_DOC_FILES}
if [ ! -f ./GDBvn.texi ]; then \
(test "$$LN_S" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
ln $(srcdir)/GDBvn.texi . || \
cp $(srcdir)/GDBvn.texi . ; else true; fi
rm -f $(GDB_TEX_TMPS)
$(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/gdb.texinfo
rm -f gdb.aux gdb.cp* gdb.fn* gdb.ky* gdb.log gdb.pg* gdb.toc \
gdb.tp* gdb.vr*
rm -f $(GDB_TEX_TMPS)
gdb.ps: gdb.dvi
$(DVIPS) -o $@ $?
gdb.pdf: ${SFILES_DOC}
gdb.pdf: ${GDB_DOC_FILES}
if [ ! -f ./GDBvn.texi ]; then \
(test "$$LN_S" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
ln $(srcdir)/GDBvn.texi . || \
cp $(srcdir)/GDBvn.texi . ; else true; fi
rm -f $(GDB_TEX_TMPS)
$(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/gdb.texinfo
rm -f gdb.aux gdb.cp* gdb.fn* gdb.ky* gdb.log gdb.pg* gdb.toc \
gdb.tp* gdb.vr*
rm -f $(GDB_TEX_TMPS)
# GDB MANUAL: info file
gdb.info: ${SFILES_DOC}
gdb.info: ${GDB_DOC_FILES}
$(MAKEINFO) -I ${READLINE_DIR} -I ${GDBMI_DIR} -I $(srcdir) \
-o gdb.info $(srcdir)/gdb.texinfo
@ -281,37 +308,16 @@ gdb.info: ${SFILES_DOC}
# texi2roff doesn't have a notion of include dirs, so we have to fake
# it out for gdb manual's include files---but only if not configured
# in main sourcedir.
links2roff: $(SFILES_INCLUDED)
links2roff: $(GDB_DOC_SOURCE_INCLUDES)
if [ ! -f gdb.texinfo ]; then \
(test "$$LN_S" = "ln -s" && ln -s $(SFILES_INCLUDED) .) || \
ln $(SFILES_INCLUDED) . || \
cp $(SFILES_INCLUDED) . ; \
(test "$$LN_S" = "ln -s" && ln -s $(GDB_DOC_SOURCE_INCLUDES) .) || \
ln $(GDB_DOC_SOURCE_INCLUDES) . || \
cp $(GDB_DOC_SOURCE_INCLUDES) . ; \
fi
touch links2roff
# "Readline" appendices. Get them also due to lack of includes,
# regardless of whether or not configuring in main sourcedir.
# @ftable removed due to bug in texi2roff-2; if your texi2roff
# is newer, try just ln or cp
rluser.texinfo: ${READLINE_DIR}/rluser.texinfo
sed -e 's/^@ftable/@table/g' \
-e 's/^@end ftable/@end table/g' \
${READLINE_DIR}/rluser.texinfo > ./rluser.texinfo
inc-hist.texinfo: ${READLINE_DIR}/inc-hist.texinfo
(test "$$LN_S" = "ln -s" && \
ln -s ${READLINE_DIR}/inc-hist.texinfo .) || \
ln ${READLINE_DIR}/inc-hist.texinfo . || \
cp ${READLINE_DIR}/inc-hist.texinfo .
gdbmi.texinfo: ${GDBMI_DIR}/gdbmi.texinfo
(test "$$LN_S" = "ln -s" && \
ln -s ${GDBMI_DIR}/gdbmi.texinfo .) || \
ln ${GDBMI_DIR}/gdbmi.texinfo . || \
cp ${GDBMI_DIR}/gdbmi.texinfo .
# gdb manual suitable for [gtn]roff -me
gdb.me: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo gdbmi.texinfo
gdb.me: $(GDB_DOC_FILES) links2roff
sed -e '/\\input texinfo/d' \
-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
-e '/^@ifinfo/,/^@end ifinfo/d' \
@ -326,7 +332,7 @@ gdb.me: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo gdbmi.texinfo
>gdb.me
# gdb manual suitable for [gtn]roff -ms
gdb.ms: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo gdbmi.texinfo
gdb.ms: $(GDB_DOC_FILES) links2roff
sed -e '/\\input texinfo/d' \
-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
-e '/^@ifinfo/,/^@end ifinfo/d' \
@ -343,7 +349,7 @@ gdb.ms: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo gdbmi.texinfo
# gdb manual suitable for [tn]roff -mm
# '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
# try leaving them in
gdb.mm: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo gdbmi.texinfo
gdb.mm: $(GDB_DOC_FILES) links2roff
sed -e '/\\input texinfo/d' \
-e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
-e '/^@ifinfo/,/^@end ifinfo/d' \
@ -360,54 +366,60 @@ gdb.mm: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo gdbmi.texinfo
# GDB MANUAL: HTML file
gdb_toc.html: ${SFILES_DOC}
gdb_toc.html: ${GDB_DOC_FILES}
$(MAKEHTML) $(MAKEHTMLFLAGS) -I ${READLINE_DIR} -I ${GDBMI_DIR} -I $(srcdir) $(srcdir)/gdb.texinfo
GDBINT_TEX_TMPS = gdbint.aux gdbint.cp* gdbint.fn* gdbint.ky* \
gdbint.log gdbint.pg* gdbint.toc gdbint.tp* gdbint.vr*
# GDB INTERNALS MANUAL: TeX dvi file
gdbint.dvi: gdbint.texinfo gdb-cfg.texi fdl.texi
gdbint.dvi: $(GDBINT_DOC_FILES)
rm -f $(GDBINT_TEX_TMPS)
$(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/gdbint.texinfo
rm -f gdbint.aux gdbint.cp* gdbint.fn* gdbint.ky* \
gdbint.log gdbint.pg* gdbint.toc gdbint.tp* gdbint.vr*
rm -f $(GDBINT_TEX_TMPS)
gdbint.ps : gdbint.dvi
$(DVIPS) -o $@ $?
gdbint.pdf: gdbint.texinfo gdb-cfg.texi fdl.texi
gdbint.pdf: $(GDBINT_DOC_FILES)
rm -f $(GDBINT_TEX_TMPS)
$(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/gdbint.texinfo
rm -f gdbint.aux gdbint.cp* gdbint.fn* gdbint.ky* \
gdbint.log gdbint.pg* gdbint.toc gdbint.tp* gdbint.vr*
rm -f $(GDBINT_TEX_TMPS)
# GDB INTERNALS MANUAL: info file
gdbint.info: gdbint.texinfo fdl.texi
gdbint.info: $(GDBINT_DOC_FILES)
$(MAKEINFO) -I $(srcdir) -o gdbint.info $(srcdir)/gdbint.texinfo
# GDB INTERNALS MANUAL: HTML file
gdbint_toc.html: gdbint.texinfo gdb-cfg.texi fdl.texi
gdbint_toc.html: $(GDBINT_DOC_FILES)
$(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/gdbint.texinfo
stabs.info: stabs.texinfo
stabs.info: $(STABS_DOC_FILES)
$(MAKEINFO) -o stabs.info $(srcdir)/stabs.texinfo
# STABS DOCUMENTATION: HTML file
stabs_toc.html: stabs.texinfo
stabs_toc.html: $(STABS_DOC_FILES)
$(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/stabs.texinfo
STABS_TEX_TMPS = stabs.aux stabs.cp* stabs.fn* stabs.ky* \
stabs.log stabs.pg* stabs.toc stabs.tp* stabs.vr*
# STABS DOCUMENTATION: TeX dvi file
stabs.dvi : stabs.texinfo
stabs.dvi : $(STABS_DOC_FILES)
rm -f $(STABS_TEX_TMPS)
$(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/stabs.texinfo
rm -f stabs.aux stabs.cp* stabs.fn* stabs.ky* \
stabs.log stabs.pg* stabs.toc stabs.tp* stabs.vr*
rm -f $(STABS_TEX_TMPS)
stabs.ps: stabs.dvi
$(DVIPS) -o $@ $?
stabs.pdf: stabs.dvi
stabs.pdf: $(STABS_DOC_FILES)
rm -f $(STABS_TEX_TMPS)
$(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/stabs.texinfo
rm -f stabs.aux stabs.cp* stabs.fn* stabs.ky* \
stabs.log stabs.pg* stabs.toc stabs.tp* stabs.vr*
rm -f $(STABS_TEX_TMPS)
force: