OSDN Git Service

2006-12-19 Paolo Bonzini <bonzini@gnu.org>
[pf3gnuchains/pf3gnuchains3x.git] / etc / Makefile.in
index b99daf9..7d0607d 100644 (file)
@@ -25,7 +25,10 @@ man6dir = $(mandir)/man6
 man7dir = $(mandir)/man7
 man8dir = $(mandir)/man8
 man9dir = $(mandir)/man9
+datarootdir = @datarootdir@
+docdir = @docdir@
 infodir = @infodir@
+htmldir = @htmldir@
 
 SHELL = /bin/sh
 
@@ -39,7 +42,10 @@ MAKEINFO = `if [ -f ../texinfo/makeinfo/makeinfo ]; \
 TEXI2DVI = `if [ -f ../texinfo/util/texi2dvi ]; \
        then echo ../texinfo/util/texi2dvi; \
        else echo texi2dvi; fi`
-TEXI2HTML = texi2html
+TEXI2HTML = `if [ -f ../texinfo/makeinfo/makeinfo ]; \
+       then echo "../texinfo/makeinfo/makeinfo --html"; \
+       else echo "makeinfo --html"; fi`
+
 DVIPS = dvips
 
 # Where to find texinfo.tex to format documentation with TeX.
@@ -50,6 +56,7 @@ TEXIDIR = $(srcdir)/../texinfo
 
 INFOFILES = standards.info configure.info
 DVIFILES = standards.dvi configure.dvi
+HTMLFILES = standards.html configure.html
 
 all: info
 install: install-info
@@ -82,6 +89,32 @@ install-info: info
          done; \
        fi
 
+html:
+       for f in $(HTMLFILES); do \
+         if test -f $(srcdir)/`echo $$f | sed -e 's/.html$$/.texi/'`; then \
+           if $(MAKE) "TEXI2HTML=$(TEXI2HTML)" $$f; then \
+             true; \
+           else \
+             exit 1; \
+           fi; \
+         fi; \
+       done
+
+install-html: html
+       $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(htmldir)
+       if test ! -f standards.html; then cd $(srcdir); fi; \
+       if test -f standards.html; then \
+         for i in standards.html*; do \
+           $(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i; \
+         done; \
+       fi
+       if test ! -f configure.html; then cd $(srcdir); fi; \
+       if test -f configure.html; then \
+         for i in configure.html*; do \
+           $(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i; \
+         done; \
+       fi
+
 dvi:
        for f in $(DVIFILES); do \
          if test -f $(srcdir)/`echo $$f | sed -e 's/.dvi$$/.texi/'`; then \
@@ -96,6 +129,9 @@ dvi:
 standards.info: $(srcdir)/standards.texi $(srcdir)/make-stds.texi
        $(MAKEINFO) --no-split -I$(srcdir) -o standards.info $(srcdir)/standards.texi
 
+standards.html: $(srcdir)/standards.texi $(srcdir)/make-stds.texi
+       $(TEXI2HTML) --no-split -I$(srcdir) -o standards.html $(srcdir)/standards.texi
+
 standards.dvi: $(srcdir)/standards.texi
        TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/standards.texi
 
@@ -131,12 +167,15 @@ configure.ps: configure.dvi $(srcdir)/configdev.ein $(srcdir)/configbuild.ein
        rm -f configdev.eps configbuild.eps
 
 configure.html: $(srcdir)/configure.texi
-       $(TEXI2HTML) -split_chapter $(srcdir)/configure.texi
+       cp $(srcdir)/configdev.jin configdev.jpg
+       cp $(srcdir)/configbuild.jin configbuild.jpg
+       $(TEXI2HTML) --no-split -I$(srcdir) -o configure.html $(srcdir)/configure.texi
 
 clean:
        rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
        rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
-       rm -f configdev.txt configbuild.txt configdev.eps configbuild.eps
+       rm -f configdev.txt configbuild.txt 
+       rm -f configdev.eps configbuild.eps
        rm -f configdev.jpg configbuild.jpg
 
 mostlyclean: clean
@@ -145,6 +184,7 @@ distclean:   clean
        rm -f Makefile config.status config.cache
 
 maintainer-clean realclean:   distclean
+       rm -f *.html*
        rm -f *.info*
 
 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)