summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-08-25 00:12:33 +0000
committerAndrew Cagney <cagney@redhat.com>2002-08-25 00:12:33 +0000
commit28d458674126e6384825e3f39927e8b7f5c19961 (patch)
tree2de47f10b808f4ad3341bb1328c6e47bf4272efd
parentff79824677b485f3400e168b8070f74bcf139e00 (diff)
downloadgdb-28d458674126e6384825e3f39927e8b7f5c19961.tar.gz
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.
-rw-r--r--gdb/doc/ChangeLog27
-rw-r--r--gdb/doc/Makefile.in134
2 files changed, 100 insertions, 61 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 4693072ed6b..aa708288474 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -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
diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in
index 3b549b84763..c1e9ad6ac33 100644
--- a/gdb/doc/Makefile.in
+++ b/gdb/doc/Makefile.in
@@ -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
-
-SFILES_LOCAL = $(srcdir)/gdb.texinfo GDBvn.texi $(SFILES_INCLUDED)
-
-SFILES_DOC = $(SFILES_LOCAL) $(GDBMI_DIR)/gdbmi.texinfo \
- $(READLINE_DIR)/rluser.texinfo $(READLINE_DIR)/inc-hist.texinfo
+ $(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)
+
+# 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)
+
+# 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: