* aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
[deliverable/binutils-gdb.git] / etc / Makefile.in
index eedc8c9c1ac241d73e0b9c23f0309ce6f162b5c5..df461cfd59c308f3eea919fb7cf3f2083b1560aa 100644 (file)
@@ -2,6 +2,8 @@
 # Makefile.in for etc
 #
 
+DESTDIR                =
+
 prefix                 = @prefix@
 exec_prefix    = @exec_prefix@
 
@@ -37,7 +39,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.
@@ -48,10 +53,10 @@ TEXIDIR = $(srcdir)/../texinfo
 
 INFOFILES = standards.info configure.info
 DVIFILES = standards.dvi configure.dvi
+HTMLFILES = standards.html configure.html
 
-all:
-
-install:
+all: info
+install: install-info
 
 uninstall:
 
@@ -67,20 +72,32 @@ info:
        done
 
 install-info: info
-       $(SHELL) $(srcdir)/../mkinstalldirs $(infodir)
+       $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(infodir)
        if test ! -f standards.info; then cd $(srcdir); fi; \
        if test -f standards.info; then \
          for i in standards.info*; do \
-           $(INSTALL_DATA) $$i $(infodir)/$$i; \
+           $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
          done; \
        fi
        if test ! -f configure.info; then cd $(srcdir); fi; \
        if test -f configure.info; then \
          for i in configure.info*; do \
-           $(INSTALL_DATA) $$i $(infodir)/$$i; \
+           $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
          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
+
+
 dvi:
        for f in $(DVIFILES); do \
          if test -f $(srcdir)/`echo $$f | sed -e 's/.dvi$$/.texi/'`; then \
@@ -95,6 +112,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
 
@@ -130,12 +150,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
@@ -144,6 +167,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)
This page took 0.023995 seconds and 4 git commands to generate.