Add Xtensa port
[deliverable/binutils-gdb.git] / gas / doc / Makefile.am
index eaf5a4ab145c416496f97a1f02e8460e96ebd5c6..1e8acbccb80ac4eada8ddf5515ffcfb5da5624be 100644 (file)
@@ -5,9 +5,17 @@ AUTOMAKE_OPTIONS = cygnus
 # What version of the manual you want; "all" includes everything
 CONFIG=all
 
+# Options to extract the man page from as.texinfo
+MANCONF = -Dman
+
+TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl
+
+POD2MAN = pod2man --center="GNU Development Tools" \
+       --release="binutils-$(VERSION)" --section=1
+
 man_MANS = as.1
 
-info_TEXINFOS = as.texinfo gasp.texi
+info_TEXINFOS = as.texinfo 
 
 asconfig.texi: $(CONFIG).texi
        rm -f asconfig.texi
@@ -17,20 +25,37 @@ asconfig.texi: $(CONFIG).texi
 
 CPU_DOCS = \
        c-a29k.texi \
+       c-alpha.texi \
+       c-arc.texi \
        c-arm.texi \
        c-d10v.texi \
+       c-cris.texi \
        c-h8300.texi \
        c-h8500.texi \
        c-hppa.texi \
+       c-i370.texi \
        c-i386.texi \
+       c-i860.texi \
        c-i960.texi \
+       c-ip2k.texi \
+       c-m32r.texi \
+       c-m68hc11.texi \
        c-m68k.texi \
+       c-m88k.texi \
        c-mips.texi \
+       c-mmix.texi \
+       c-msp430.texi \
        c-ns32k.texi \
+       c-pdp11.texi \
+       c-pj.texi \
+       c-ppc.texi \
        c-sh.texi \
+       c-sh64.texi \
        c-sparc.texi \
+        c-tic54x.texi \
        c-vax.texi \
        c-v850.texi \
+       c-xtensa.texi \
        c-z8k.texi
 
 gasver.texi: Makefile
@@ -40,6 +65,10 @@ gasver.texi: Makefile
 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: install-info
+
 # This one isn't ready for prime time yet.  Not even a little bit.
 
 noinst_TEXINFOS = internals.texi
@@ -47,3 +76,20 @@ noinst_TEXINFOS = internals.texi
 DISTCLEANFILES = asconfig.texi
 
 MAINTAINERCLEANFILES = gasver.texi
+
+# Maintenance
+
+# We need it for the taz target in ../../Makefile.in.
+info: $(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)
+       touch $@
+       -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
+       -($(POD2MAN) as.pod | \
+               sed -e '/^.if n .na/d' > $@.T$$$$ && \
+               mv -f $@.T$$$$ $@) || \
+               (rm -f $@.T$$$$ && exit 1)
+       rm -f as.pod
This page took 0.026553 seconds and 4 git commands to generate.