bfd/
[deliverable/binutils-gdb.git] / gas / doc / Makefile.am
index 0fdbe830e16d6e17fc795cf6f4332f341062c19f..bfe4196314ae9d93edd5f038f17ec05aab1f0c7e 100644 (file)
@@ -8,7 +8,7 @@ CONFIG=all
 # Options to extract the man page from as.texinfo
 MANCONF = -Dman
 
-TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl
+TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
 
 POD2MAN = pod2man --center="GNU Development Tools" \
        --release="binutils-$(VERSION)" --section=1
@@ -17,16 +17,20 @@ man_MANS = as.1
 
 info_TEXINFOS = as.texinfo 
 
+AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty"
+TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty"
+
 asconfig.texi: $(CONFIG).texi
        rm -f asconfig.texi
-       ln -s $(srcdir)/$(CONFIG).texi ./asconfig.texi >/dev/null 2>&1 \
-         || ln $(srcdir)/$(CONFIG).texi ./asconfig.texi >/dev/null 2>&1 \
-         || cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
+       cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
+       chmod u+w ./asconfig.texi
 
 CPU_DOCS = \
        c-alpha.texi \
        c-arc.texi \
        c-arm.texi \
+       c-avr.texi \
+       c-bfin.texi \
        c-d10v.texi \
        c-cris.texi \
        c-h8300.texi \
@@ -42,6 +46,7 @@ CPU_DOCS = \
        c-m68k.texi \
        c-mips.texi \
        c-mmix.texi \
+       c-mt.texi \
        c-msp430.texi \
        c-ns32k.texi \
        c-pdp11.texi \
@@ -54,6 +59,7 @@ CPU_DOCS = \
        c-vax.texi \
        c-v850.texi \
        c-xtensa.texi \
+       c-z80.texi \
        c-z8k.texi
 
 gasver.texi: $(srcdir)/../../bfd/configure
@@ -61,13 +67,33 @@ gasver.texi: $(srcdir)/../../bfd/configure
        eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \
          echo "@set VERSION $$VERSION" > $@
 
-$(srcdir)/as.info: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
-as.dvi: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
+as.info as.dvi as.html: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
 
 # We want install to imply install-info as per GNU standards, despite the
 # cygnus option.
 install-data-local: install-info
 
+html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+
+install-html: install-html-am
+
+install-html-am: $(HTMLS)
+       @$(NORMAL_INSTALL)
+       test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
+       @list='$(HTMLS)'; for p in $$list; do \
+         if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
+         f=$(html__strip_dir) \
+         if test -d "$$d$$p"; then \
+           echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
+           $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
+           echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
+           $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
+         else \
+           echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
+           $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
+         fi; \
+       done
+
 # This one isn't ready for prime time yet.  Not even a little bit.
 
 noinst_TEXINFOS = internals.texi
@@ -95,3 +121,12 @@ as.1: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
                mv -f $@.T$$$$ $@) || \
                (rm -f $@.T$$$$ && exit 1)
        rm -f as.pod
+
+MAINTAINERCLEANFILES += as.info
+
+# Automake 1.9 will only build info files in the objdir if they are
+# mentioned in DISTCLEANFILES.  It doesn't have to be unconditional,
+# though, so we use a bogus condition.
+if GENINSRC_NEVER
+DISTCLEANFILES = as.info
+endif
This page took 0.048502 seconds and 4 git commands to generate.