diff options
author | Nick Clifton <nickc@redhat.com> | 2001-03-25 20:32:31 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-03-25 20:32:31 +0000 |
commit | 0285c67df190b85c05973783e204cd1869644c76 (patch) | |
tree | 04a6234405c7c5aa6dd70c4361e65875ede971ce /gas/doc/Makefile.am | |
parent | 551c1ca1767053de70c75514eee92b55ac8a821a (diff) | |
download | gdb-0285c67df190b85c05973783e204cd1869644c76.zip gdb-0285c67df190b85c05973783e204cd1869644c76.tar.gz gdb-0285c67df190b85c05973783e204cd1869644c76.tar.bz2 |
Automate generate on man pages
Diffstat (limited to 'gas/doc/Makefile.am')
-rw-r--r-- | gas/doc/Makefile.am | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gas/doc/Makefile.am b/gas/doc/Makefile.am index 95b02b7..5cd20f8 100644 --- a/gas/doc/Makefile.am +++ b/gas/doc/Makefile.am @@ -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 @@ -55,3 +62,17 @@ noinst_TEXINFOS = internals.texi DISTCLEANFILES = asconfig.texi MAINTAINERCLEANFILES = gasver.texi + +# Maintenance + +# Build the man page from the texinfo file +# The sed command removes the no-adjust Nroff command so that +# the man output looks standard. +$(srcdir)/as.1: $(srcdir)/as.texinfo + touch $(srcdir)/as.1 + -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod + -($(POD2MAN) as.pod | \ + sed -e '/^.if n .na/d' > $(srcdir)/as.1.T$$$$ && \ + mv -f $(srcdir)/as.1.T$$$$ $(srcdir)/as.1) || \ + (rm -f $(srcdir)/as.1.T$$$$ && exit 1) + |