1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2012-2018 Free Software Foundation, Inc.
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 = info-in-builddir no-texinfo.tex foreign
22 # What version of the manual you want; "all" includes everything
25 # Options to extract the man page from as.texi
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.texi
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
103 # We want install to imply install-info as per GNU standards, despite the
105 install-data-local: install-info
107 # This one isn't ready for prime time yet. Not even a little bit.
109 noinst_TEXINFOS = internals.texi
111 MAINTAINERCLEANFILES = asconfig.texi
113 BASEDIR = $(srcdir)/../..
114 BFDDIR = $(BASEDIR)/bfd
118 # We need it for the taz target in ../../Makefile.in.
121 # Build the man page from the texinfo file
122 # The sed command removes the no-adjust Nroff command so that
123 # the man output looks standard.
124 as.1: $(srcdir)/as.texi asconfig.texi $(CPU_DOCS)
126 -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texi > as.pod
127 -($(POD2MAN) as.pod | \
128 sed -e '/^.if n .na/d' > $@.T$$$$ && \
129 mv -f $@.T$$$$ $@) || \
130 (rm -f $@.T$$$$ && exit 1)
133 MAINTAINERCLEANFILES += as.info