Fix compile time warning messages.
[deliverable/binutils-gdb.git] / gdb / doc / Makefile.in
index 4bcd62ec164800d3f5e10c17ddaf7c6f5bcd8ebe..ad3787ebe29476e002b62967db8f9d6d6e61e730 100644 (file)
@@ -23,9 +23,12 @@ VPATH = @srcdir@
 prefix = @prefix@
 
 infodir = @infodir@
+htmldir = $(prefix)/html
 
 SHELL = @SHELL@
 
+LN_S = @LN_S@
+
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
@@ -39,6 +42,13 @@ 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
+
 # where to find texi2roff, ditto
 TEXI2ROFF=texi2roff
 
@@ -46,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
@@ -79,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.
 ###
@@ -94,12 +108,27 @@ all install:
 info: gdb.info gdbint.info stabs.info
 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 \
+               $(INSTALL_DATA) $$i $(htmldir)/$$i ; \
+       done
 
 STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi
 
@@ -142,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
@@ -152,7 +181,7 @@ distclean: clean
 # "clean" or "distclean".  Use maintainer-clean to remove them.
 
 maintainer-clean realclean: distclean
-       rm -f GDBvn.texi *.info* *.dvi *.ps
+       rm -f GDBvn.texi *.info* *.dvi *.ps *.html
 
 # GDB QUICK REFERENCE (dvi output)
 refcard.dvi : refcard.tex $(REFEDITS)
@@ -160,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
@@ -184,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
 
@@ -200,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
@@ -214,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.
@@ -235,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
@@ -250,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' \
@@ -271,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' \
@@ -288,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' \
@@ -303,6 +340,24 @@ gdb.mm: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texi
        sed -e 's/---/\\(em/g' \
        >gdb.mm 
 
+# GDB MANUAL: HTML file
+
+gdb_toc.html: ${SFILES_DOC}
+       $(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
@@ -320,9 +375,19 @@ gdbint.ps : gdbint.dvi
 gdbint.info: gdbint.texinfo
        $(MAKEINFO) -o gdbint.info $(srcdir)/gdbint.texinfo
 
+# GDB INTERNALS MANUAL: HTML file
+
+gdbint_toc.html: gdbint.texinfo
+       $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/gdbint.texinfo
+
 stabs.info: stabs.texinfo
        $(MAKEINFO) -o stabs.info $(srcdir)/stabs.texinfo
 
+# STABS DOCUMENTATION: HTML file
+
+stabs_toc.html: stabs.texinfo
+       $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/stabs.texinfo
+
 # STABS DOCUMENTATION: TeX dvi file
 stabs.dvi : stabs.texinfo
        $(SET_TEXINPUTS) $(TEX) stabs.texinfo
This page took 0.027648 seconds and 4 git commands to generate.