]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/doc/Makefile.am
bfd:
[thirdparty/binutils-gdb.git] / gas / doc / Makefile.am
index bc25e886dfa2cbf0052c4687819b0927418bef90..f115ae2db48aba1b1e1869244046fbf0ef0ae991 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
@@ -16,20 +16,28 @@ POD2MAN = pod2man --center="GNU Development Tools" \
 man_MANS = as.1
 
 info_TEXINFOS = as.texinfo 
+as_TEXINFOS = asconfig.texi $(CPU_DOCS)
+
+AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
+                  -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
+TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
+                  -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
 
 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-cr16.texi \
        c-cris.texi \
+       c-d10v.texi \
+       c-epiphany.texi \
        c-h8300.texi \
        c-hppa.texi \
        c-i370.texi \
@@ -37,35 +45,37 @@ CPU_DOCS = \
        c-i860.texi \
        c-i960.texi \
        c-ip2k.texi \
+       c-lm32.texi \
        c-m32c.texi \
        c-m32r.texi \
        c-m68hc11.texi \
        c-m68k.texi \
+       c-microblaze.texi \
        c-mips.texi \
        c-mmix.texi \
+       c-mt.texi \
        c-msp430.texi \
        c-ns32k.texi \
        c-pdp11.texi \
        c-pj.texi \
        c-ppc.texi \
+       c-rx.texi \
+       c-s390.texi \
+       c-score.texi \
        c-sh.texi \
        c-sh64.texi \
        c-sparc.texi \
         c-tic54x.texi \
+        c-tic6x.texi \
+       c-tilegx.texi \
+       c-tilepro.texi \
        c-vax.texi \
        c-v850.texi \
+       c-xstormy16.texi \
        c-xtensa.texi \
        c-z80.texi \
        c-z8k.texi
 
-gasver.texi: $(srcdir)/../../bfd/configure
-       rm -f $@
-       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)
-
 # We want install to imply install-info as per GNU standards, despite the
 # cygnus option.
 install-data-local: install-info
@@ -74,7 +84,7 @@ install-data-local: install-info
 
 noinst_TEXINFOS = internals.texi
 
-MAINTAINERCLEANFILES = asconfig.texi gasver.texi
+MAINTAINERCLEANFILES = asconfig.texi
 
 BASEDIR = $(srcdir)/../..
 BFDDIR = $(BASEDIR)/bfd
@@ -89,7 +99,7 @@ info-local: $(MANS)
 # Build the man page from the texinfo file
 # The sed command removes the no-adjust Nroff command so that
 # the man output looks standard.
-as.1: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
+as.1: $(srcdir)/as.texinfo asconfig.texi $(CPU_DOCS)
        touch $@
        -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
        -($(POD2MAN) as.pod | \
@@ -97,3 +107,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