Fix compile time warning messages.
[deliverable/binutils-gdb.git] / gdb / doc / Makefile.in
index f81e58363b965139912df2fe7b194a2acbe7fb6b..ad3787ebe29476e002b62967db8f9d6d6e61e730 100644 (file)
@@ -27,6 +27,8 @@ htmldir = $(prefix)/html
 
 SHELL = @SHELL@
 
+LN_S = @LN_S@
+
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
@@ -40,6 +42,10 @@ TEXIDIR=${gdbdir}/../texinfo
 # where to find makeinfo, preferably one designed for texinfo-2
 MAKEINFO=makeinfo
 
+# Note that texinfo 4.0's makeinfo --html can only generate a
+# single file, which would be too large, so continue to use
+# texi2html. -sts 2000-03-28
+
 MAKEHTML = texi2html
 MAKEHTMLFLAGS = -glossary -menu -split_chapter
 
@@ -50,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
@@ -83,12 +93,12 @@ TEXINDEX = texindex
 DVIPS = dvips
 
 # Main GDB manual's source files
-SFILES_INCLUDED = gdb-cfg.texi $(srcdir)/remote.texi
+SFILES_INCLUDED = gdb-cfg.texi $(srcdir)/annotate.texi
 
 SFILES_LOCAL = $(srcdir)/gdb.texinfo GDBvn.texi $(SFILES_INCLUDED)
 
-SFILES_DOC = $(SFILES_LOCAL) \
-                $(READLINE_DIR)/rluser.texinfo $(READLINE_DIR)/inc-hist.texi
+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.
 ###
@@ -100,11 +110,20 @@ dvi: gdb.dvi gdbint.dvi stabs.dvi refcard.dvi
 ps: gdb.ps gdbint.ps stabs.ps refcard.ps
 html: gdb_toc.html gdbint_toc.html stabs_toc.html
 all-doc: info dvi ps
+diststuff: info
 
 install-info: info
+       $(SHELL) $(srcdir)/../../mkinstalldirs $(infodir)
        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 \
@@ -152,7 +171,7 @@ mostlyclean:
        rm -f sedref.dvi sedref.tex tmp.sed
 
 clean: mostlyclean
-       rm -f rluser.texinfo inc-hist.texi gdb-cfg.texi
+       rm -f rluser.texinfo inc-hist.texinfo gdb-cfg.texi
 
 distclean: clean
        rm -f Makefile config.status
@@ -170,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
@@ -194,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
 
@@ -210,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
@@ -224,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.
@@ -245,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
@@ -260,13 +280,20 @@ rluser.texinfo: ${READLINE_DIR}/rluser.texinfo
                -e 's/^@end ftable/@end table/g' \
                ${READLINE_DIR}/rluser.texinfo > ./rluser.texinfo
 
-inc-hist.texi: ${READLINE_DIR}/inc-hist.texi
-       ln -s ${READLINE_DIR}/inc-hist.texi . || \
-       ln ${READLINE_DIR}/inc-hist.texi . || \
-       cp ${READLINE_DIR}/inc-hist.texi .
+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.texi
+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' \
@@ -281,7 +308,7 @@ gdb.me: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texi
        >gdb.me 
 
 # gdb manual suitable for [gtn]roff -ms
-gdb.ms: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texi
+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' \
@@ -298,7 +325,7 @@ gdb.ms: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texi
 # 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.texi
+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' \
@@ -316,8 +343,21 @@ gdb.mm: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texi
 # 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}
+       $(SET_TEXINPUTS) $(TEX) gdbgui.texinfo
+       $(TEXINDEX) gdbgui.??
+       $(SET_TEXINPUTS) $(TEX) gdbgui.texinfo
+       rm -f gdbgui.aux gdbgui.cp* gdbgui.fn* gdbgui.ky* \
+               gdbgui.log gdbgui.pg* gdbgui.toc gdbgui.tp* gdbgui.vr*
+
+# GDB GUI MANUAL: info file
+gdb-gui: gdbgui.info
 
+gdbgui.info: gdbgui.texinfo ${SFILES_DOC}
+       $(MAKEINFO) -o gdbgui.info $(srcdir)/gdbgui.texinfo
 
 # GDB INTERNALS MANUAL: TeX dvi file
 gdbint.dvi : gdbint.texinfo
This page took 0.025581 seconds and 4 git commands to generate.