]> Git Repo - binutils.git/blobdiff - gas/doc/Makefile.in
Fix mips16 testsuite failure by allowing finalize_syms to be set before
[binutils.git] / gas / doc / Makefile.in
index f328d71af1cf98e69a8a5201256f5184d70c2293..90ebe51e78bf59f4f8dde27d8b43cc6929187fb2 100644 (file)
@@ -121,6 +121,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
@@ -448,6 +455,23 @@ 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)
 
+# 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
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
This page took 0.031348 seconds and 4 git commands to generate.