generate single html manual page by default
[deliverable/binutils-gdb.git] / gas / doc / Makefile.am
CommitLineData
252b5132 1## Process this file with automake to generate Makefile.in
5bf135a7 2#
250d07de 3# Copyright (C) 2012-2021 Free Software Foundation, Inc.
5bf135a7
NC
4#
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.
34bca508 9#
5bf135a7
NC
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.
34bca508 14#
5bf135a7
NC
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/>.
18#
252b5132 19
d388f643 20AUTOMAKE_OPTIONS = info-in-builddir no-texinfo.tex foreign
252b5132
RH
21
22# What version of the manual you want; "all" includes everything
23CONFIG=all
24
d0ac1c44 25# Options to extract the man page from as.texi
0285c67d
NC
26MANCONF = -Dman
27
38fc1cb1 28TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
0285c67d 29
a4fb0134
SC
30POD2MAN = pod2man --center="GNU Development Tools" \
31 --release="binutils-$(VERSION)" --section=1
0285c67d 32
252b5132
RH
33man_MANS = as.1
34
d0ac1c44 35info_TEXINFOS = as.texi
c428fa83 36as_TEXINFOS = asconfig.texi $(CPU_DOCS)
252b5132 37
c428fa83 38AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
2faf902d
MF
39 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc \
40 --no-split
c428fa83 41TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
9975e4c4 42 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
38fc1cb1 43
252b5132
RH
44asconfig.texi: $(CONFIG).texi
45 rm -f asconfig.texi
513ba3ab
JB
46 cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
47 chmod u+w ./asconfig.texi
252b5132
RH
48
49CPU_DOCS = \
a06ea964 50 c-aarch64.texi \
625e1353 51 c-alpha.texi \
0d2bcfaf 52 c-arc.texi \
252b5132 53 c-arm.texi \
8473f7a4 54 c-avr.texi \
07c1b327 55 c-bfin.texi \
f8861f5d 56 c-bpf.texi \
3d3d428f 57 c-cr16.texi \
328eb32e 58 c-cris.texi \
b8891f8d 59 c-csky.texi \
cfb8c092
NC
60 c-d10v.texi \
61 c-epiphany.texi \
252b5132 62 c-h8300.texi \
252b5132
RH
63 c-hppa.texi \
64 c-i386.texi \
a40cbfa3 65 c-ip2k.texi \
84e94c90 66 c-lm32.texi \
49f58d10 67 c-m32c.texi \
ded0aeb7 68 c-m32r.texi \
60bcf0fa 69 c-m68hc11.texi \
252b5132 70 c-m68k.texi \
7b4ae824 71 c-s12z.texi \
a3c62988 72 c-metag.texi \
7ba29e2a 73 c-microblaze.texi \
252b5132 74 c-mips.texi \
3c3bdf30 75 c-mmix.texi \
4970f871 76 c-mt.texi \
2469cfa2 77 c-msp430.texi \
36591ba1 78 c-nios2.texi \
35c08157 79 c-nds32.texi \
252b5132 80 c-ns32k.texi \
1f041c6e 81 c-or1k.texi \
e135f41b 82 c-pdp11.texi \
041dd5a9 83 c-pj.texi \
418c1742 84 c-ppc.texi \
93f11b16 85 c-pru.texi \
99c513f6 86 c-rl78.texi \
4f7eddc4 87 c-riscv.texi \
c7927a3c 88 c-rx.texi \
11c19e16 89 c-s390.texi \
c3b7224a 90 c-score.texi \
252b5132
RH
91 c-sh.texi \
92 c-sparc.texi \
39bec121 93 c-tic54x.texi \
40b36596 94 c-tic6x.texi \
aa137e4d
NC
95 c-tilegx.texi \
96 c-tilepro.texi \
252b5132 97 c-v850.texi \
b6605ddd
EB
98 c-vax.texi \
99 c-visium.texi \
f6c1a2d5 100 c-xgate.texi \
b47d265e 101 c-xstormy16.texi \
e0001a05 102 c-xtensa.texi \
3c9b82ba 103 c-z80.texi \
252b5132
RH
104 c-z8k.texi
105
7562a296
HPN
106# We want install to imply install-info as per GNU standards, despite the
107# cygnus option.
c6581168 108install-data-local: install-info
7562a296 109
252b5132
RH
110# This one isn't ready for prime time yet. Not even a little bit.
111
fea17916 112noinst_TEXINFOS = internals.texi
252b5132 113
c428fa83 114MAINTAINERCLEANFILES = asconfig.texi
0285c67d 115
2251dd89
MR
116BASEDIR = $(srcdir)/../..
117BFDDIR = $(BASEDIR)/bfd
118
0285c67d
NC
119# Maintenance
120
c45021f2 121# We need it for the taz target in ../../Makefile.in.
4d1cd5c7 122info-local: $(MANS)
c45021f2 123
0285c67d
NC
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.
d0ac1c44 127as.1: $(srcdir)/as.texi asconfig.texi $(CPU_DOCS)
c45021f2 128 touch $@
d0ac1c44 129 -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texi > as.pod
0285c67d 130 -($(POD2MAN) as.pod | \
c45021f2
NC
131 sed -e '/^.if n .na/d' > $@.T$$$$ && \
132 mv -f $@.T$$$$ $@) || \
133 (rm -f $@.T$$$$ && exit 1)
134 rm -f as.pod
d5fbea21
DJ
135
136MAINTAINERCLEANFILES += as.info
This page took 0.946581 seconds and 4 git commands to generate.