]> Git Repo - binutils.git/blobdiff - gas/doc/Makefile.am
2001-07-09 David O'Brien <[email protected]>
[binutils.git] / gas / doc / Makefile.am
index ac10774ad342373e73d0701be1f58d22a46c6387..abf95d4573427c6a2448ea88fea243b1d39f22ef 100644 (file)
@@ -5,6 +5,13 @@ 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" --release="binutils-$(VERSION)" --section=1
+
 man_MANS = as.1
 
 info_TEXINFOS = as.texinfo gasp.texi
@@ -17,6 +24,7 @@ asconfig.texi: $(CONFIG).texi
 
 CPU_DOCS = \
        c-a29k.texi \
+       c-arc.texi \
        c-arm.texi \
        c-d10v.texi \
        c-h8300.texi \
@@ -29,8 +37,10 @@ CPU_DOCS = \
        c-m32r.texi \
        c-m68hc11.texi \
        c-m68k.texi \
+       c-m88k.texi \
        c-mips.texi \
        c-ns32k.texi \
+       c-pdp11.texi \
        c-pj.texi \
        c-sh.texi \
        c-sparc.texi \
@@ -53,3 +63,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
+       touch $@
+       -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
+       -($(POD2MAN) as.pod | \
+               sed -e '/^.if n .na/d' > [email protected]$$$$ && \
+               mv -f [email protected]$$$$ $@) || \
+               (rm -f [email protected]$$$$ && exit 1)
+       rm -f as.pod
This page took 0.020806 seconds and 4 git commands to generate.