diff options
Diffstat (limited to 'gdb/doc/Makefile.in')
-rw-r--r-- | gdb/doc/Makefile.in | 47 |
1 files changed, 34 insertions, 13 deletions
diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in index 0b703a88c56..ad3787ebe29 100644 --- a/gdb/doc/Makefile.in +++ b/gdb/doc/Makefile.in @@ -27,6 +27,8 @@ htmldir = $(prefix)/html SHELL = @SHELL@ +LN_S = @LN_S@ + INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ @@ -54,7 +56,11 @@ TEXI2ROFF=texi2roff # Traditionally readline is in .. or . READLINE_DIR = ${gdbdir}/../readline/doc -SET_TEXINPUTS = TEXINPUTS=${TEXIDIR}:.:$(srcdir):$(READLINE_DIR):$$TEXINPUTS +# The GDB/MI docs come from a sibling directory ../mi +GDBMI_DIR = ${gdbdir}/mi + +SET_TEXINPUTS = \ + TEXINPUTS=${TEXIDIR}:.:$(srcdir):$(READLINE_DIR):$(GDBMI_DIR):$$TEXINPUTS # There may be alternate predefined collections of switches to configure # the GDB manual. Normally this is not done in synch with the software @@ -91,7 +97,7 @@ SFILES_INCLUDED = gdb-cfg.texi $(srcdir)/annotate.texi SFILES_LOCAL = $(srcdir)/gdb.texinfo GDBvn.texi $(SFILES_INCLUDED) -SFILES_DOC = $(SFILES_LOCAL) \ +SFILES_DOC = $(SFILES_LOCAL) $(GDBMI_DIR)/gdbmi.texinfo \ $(READLINE_DIR)/rluser.texinfo $(READLINE_DIR)/inc-hist.texinfo #### Host, target, and site specific Makefile fragments come in here. @@ -111,6 +117,13 @@ install-info: info for i in *.info* ; do \ $(INSTALL_DATA) $$i $(infodir)/$$i ; \ done + @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ + list='gdb.info gdbint.info stabs.info'; \ + for file in $$list; do \ + echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\ + install-info --info-dir=$(infodir) $(infodir)/$$file || :;\ + done; \ + else : ; fi install-html: html for i in *.html ; do \ @@ -176,7 +189,7 @@ refcard.dvi : refcard.tex $(REFEDITS) cp $(srcdir)/refcard.tex sedref.tex ; \ else \ echo > tmp.sed ; \ - for f in "$(REFEDITS)" ; do \ + for f in $(REFEDITS) ; do \ cat $(srcdir)/$$f >>tmp.sed ; done ; \ sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex ; \ fi @@ -200,7 +213,8 @@ GDBvn.texi : ${gdbdir}/Makefile.in # not one for their binary config---which may not be specifically # defined anyways). gdb-cfg.texi: ${srcdir}/${DOC_CONFIG}-cfg.texi - ln -s ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \ + (test "$$LN_S" = "ln -s" && \ + ln -s ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi) || \ ln ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \ cp ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi @@ -216,7 +230,7 @@ gdb-cfg.texi: ${srcdir}/${DOC_CONFIG}-cfg.texi # GDB MANUAL: TeX dvi file gdb.dvi: ${SFILES_DOC} if [ ! -f ./GDBvn.texi ]; then \ - ln -s $(srcdir)/GDBvn.texi . || \ + (test "$$LN_S" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \ ln $(srcdir)/GDBvn.texi . || \ cp $(srcdir)/GDBvn.texi . ; else true; fi $(SET_TEXINPUTS) $(TEX) gdb.texinfo @@ -230,10 +244,10 @@ gdb.ps: gdb.dvi $(DVIPS) -o $@ $? # GDB MANUAL: info file -# We're using texinfo2, and older makeinfo's may not be able to +# We're using texinfo 3.12; older makeinfo's may not be able to # cope with all the markup. gdb.info: ${SFILES_DOC} - $(MAKEINFO) -I ${READLINE_DIR} -I $(srcdir) -o ./gdb.info gdb.texinfo + $(MAKEINFO) -I ${READLINE_DIR} -I ${GDBMI_DIR} -I $(srcdir) -o ./gdb.info gdb.texinfo # GDB MANUAL: roff translations # Try to use a recent texi2roff. v2 was put on prep in jan91. @@ -251,7 +265,7 @@ gdb.info: ${SFILES_DOC} # in main sourcedir. links2roff: $(SFILES_INCLUDED) if [ ! -f gdb.texinfo ]; then \ - ln -s $(SFILES_INCLUDED) . || \ + (test "$$LN_S" = "ln -s" && ln -s $(SFILES_INCLUDED) .) || \ ln $(SFILES_INCLUDED) . || \ cp $(SFILES_INCLUDED) . ; \ fi @@ -267,12 +281,19 @@ rluser.texinfo: ${READLINE_DIR}/rluser.texinfo ${READLINE_DIR}/rluser.texinfo > ./rluser.texinfo inc-hist.texinfo: ${READLINE_DIR}/inc-hist.texinfo - ln -s ${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 +gdb.me: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo gdbmi.texinfo sed -e '/\\input texinfo/d' \ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ -e '/^@ifinfo/,/^@end ifinfo/d' \ @@ -287,7 +308,7 @@ gdb.me: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo >gdb.me # gdb manual suitable for [gtn]roff -ms -gdb.ms: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo +gdb.ms: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo gdbmi.texinfo sed -e '/\\input texinfo/d' \ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ -e '/^@ifinfo/,/^@end ifinfo/d' \ @@ -304,7 +325,7 @@ gdb.ms: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.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 +gdb.mm: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo gdbmi.texinfo sed -e '/\\input texinfo/d' \ -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \ -e '/^@ifinfo/,/^@end ifinfo/d' \ @@ -322,7 +343,7 @@ gdb.mm: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texinfo # GDB MANUAL: HTML file gdb_toc.html: ${SFILES_DOC} - $(MAKEHTML) $(MAKEHTMLFLAGS) -I ${READLINE_DIR} -I $(srcdir) $(srcdir)/gdb.texinfo + $(MAKEHTML) $(MAKEHTMLFLAGS) -I ${READLINE_DIR} -I ${GDBMI_DIR} -I $(srcdir) $(srcdir)/gdb.texinfo # GDB GUI MANUAL: TeX dvi file gdbgui.dvi : gdbgui.texinfo ${SFILES_DOC} |