1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2012-2021 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 \
41 TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
42 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
44 asconfig.texi: $(CONFIG).texi
46 cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
47 chmod u+w ./asconfig.texi
106 # We want install to imply install-info as per GNU standards, despite the
108 install-data-local: install-info
110 # This one isn't ready for prime time yet. Not even a little bit.
112 noinst_TEXINFOS = internals.texi
114 MAINTAINERCLEANFILES = asconfig.texi
116 BASEDIR = $(srcdir)/../..
117 BFDDIR = $(BASEDIR)/bfd
121 # We need it for the taz target in ../../Makefile.in.
124 # Build the man page from the texinfo file
125 # The sed command removes the no-adjust Nroff command so that
126 # the man output looks standard.
127 as.1: $(srcdir)/as.texi asconfig.texi $(CPU_DOCS)
129 -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texi > as.pod
130 -($(POD2MAN) as.pod | \
131 sed -e '/^.if n .na/d' > $@.T$$$$ && \
132 mv -f $@.T$$$$ $@) || \
133 (rm -f $@.T$$$$ && exit 1)
136 html-local: as/index.html
137 as/index.html: as.texi $(as_TEXINFOS)
138 $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
139 --split=node -I$(srcdir) $(srcdir)/as.texi
141 MAINTAINERCLEANFILES += as.info