1 ## Process this file with automake to generate Makefile.in
3 # Copyright 2012 Free Software Foundation
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
20 AUTOMAKE_OPTIONS = 1.8 cygnus
22 # What version of the manual you want; "all" includes everything
25 # Options to extract the man page from as.texinfo
28 TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
30 POD2MAN = pod2man --center="GNU Development Tools" \
31 --release="binutils-$(VERSION)" --section=1
35 info_TEXINFOS = as.texinfo
36 as_TEXINFOS = asconfig.texi $(CPU_DOCS)
38 AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
39 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
40 TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
41 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
43 asconfig.texi: $(CONFIG).texi
45 cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
46 chmod u+w ./asconfig.texi
102 # We want install to imply install-info as per GNU standards, despite the
104 install-data-local: install-info
106 # This one isn't ready for prime time yet. Not even a little bit.
108 noinst_TEXINFOS = internals.texi
110 MAINTAINERCLEANFILES = asconfig.texi
112 BASEDIR = $(srcdir)/../..
113 BFDDIR = $(BASEDIR)/bfd
115 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
119 # We need it for the taz target in ../../Makefile.in.
122 # Build the man page from the texinfo file
123 # The sed command removes the no-adjust Nroff command so that
124 # the man output looks standard.
125 as.1: $(srcdir)/as.texinfo asconfig.texi $(CPU_DOCS)
127 -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
128 -($(POD2MAN) as.pod | \
129 sed -e '/^.if n .na/d' > $@.T$$$$ && \
130 mv -f $@.T$$$$ $@) || \
131 (rm -f $@.T$$$$ && exit 1)
134 MAINTAINERCLEANFILES += as.info
136 # Automake 1.9 will only build info files in the objdir if they are
137 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
138 # though, so we use a bogus condition.
140 DISTCLEANFILES = as.info