Update copyright years
[deliverable/binutils-gdb.git] / gas / doc / Makefile.am
CommitLineData
252b5132 1## Process this file with automake to generate Makefile.in
5bf135a7 2#
4b95cf5c 3# Copyright (C) 2012-2014 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
c6581168 20AUTOMAKE_OPTIONS = 1.8 cygnus
252b5132
RH
21
22# What version of the manual you want; "all" includes everything
23CONFIG=all
24
0285c67d
NC
25# Options to extract the man page from as.texinfo
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
34bca508 35info_TEXINFOS = as.texinfo
c428fa83 36as_TEXINFOS = asconfig.texi $(CPU_DOCS)
252b5132 37
c428fa83 38AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
9975e4c4 39 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
c428fa83 40TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
9975e4c4 41 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
38fc1cb1 42
252b5132
RH
43asconfig.texi: $(CONFIG).texi
44 rm -f asconfig.texi
513ba3ab
JB
45 cp $(srcdir)/$(CONFIG).texi ./asconfig.texi
46 chmod u+w ./asconfig.texi
252b5132
RH
47
48CPU_DOCS = \
a06ea964 49 c-aarch64.texi \
625e1353 50 c-alpha.texi \
0d2bcfaf 51 c-arc.texi \
252b5132 52 c-arm.texi \
8473f7a4 53 c-avr.texi \
07c1b327 54 c-bfin.texi \
3d3d428f 55 c-cr16.texi \
328eb32e 56 c-cris.texi \
cfb8c092
NC
57 c-d10v.texi \
58 c-epiphany.texi \
252b5132 59 c-h8300.texi \
252b5132 60 c-hppa.texi \
5b93d8bb 61 c-i370.texi \
252b5132 62 c-i386.texi \
e3308d0d 63 c-i860.texi \
252b5132 64 c-i960.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 \
a3c62988 71 c-metag.texi \
7ba29e2a 72 c-microblaze.texi \
252b5132 73 c-mips.texi \
3c3bdf30 74 c-mmix.texi \
4970f871 75 c-mt.texi \
2469cfa2 76 c-msp430.texi \
36591ba1 77 c-nios2.texi \
35c08157 78 c-nds32.texi \
252b5132 79 c-ns32k.texi \
e135f41b 80 c-pdp11.texi \
041dd5a9 81 c-pj.texi \
418c1742 82 c-ppc.texi \
99c513f6 83 c-rl78.texi \
c7927a3c 84 c-rx.texi \
11c19e16 85 c-s390.texi \
c3b7224a 86 c-score.texi \
252b5132 87 c-sh.texi \
324bfcf3 88 c-sh64.texi \
252b5132 89 c-sparc.texi \
39bec121 90 c-tic54x.texi \
40b36596 91 c-tic6x.texi \
aa137e4d
NC
92 c-tilegx.texi \
93 c-tilepro.texi \
252b5132
RH
94 c-vax.texi \
95 c-v850.texi \
f6c1a2d5 96 c-xgate.texi \
b47d265e 97 c-xstormy16.texi \
e0001a05 98 c-xtensa.texi \
3c9b82ba 99 c-z80.texi \
252b5132
RH
100 c-z8k.texi
101
7562a296
HPN
102# We want install to imply install-info as per GNU standards, despite the
103# cygnus option.
c6581168 104install-data-local: install-info
7562a296 105
252b5132
RH
106# This one isn't ready for prime time yet. Not even a little bit.
107
fea17916 108noinst_TEXINFOS = internals.texi
252b5132 109
c428fa83 110MAINTAINERCLEANFILES = asconfig.texi
0285c67d 111
2251dd89
MR
112BASEDIR = $(srcdir)/../..
113BFDDIR = $(BASEDIR)/bfd
114
115CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
116
0285c67d
NC
117# Maintenance
118
c45021f2 119# We need it for the taz target in ../../Makefile.in.
4d1cd5c7 120info-local: $(MANS)
c45021f2 121
0285c67d
NC
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.
c428fa83 125as.1: $(srcdir)/as.texinfo asconfig.texi $(CPU_DOCS)
c45021f2 126 touch $@
0285c67d
NC
127 -$(TEXI2POD) $(MANCONF) < $(srcdir)/as.texinfo > as.pod
128 -($(POD2MAN) as.pod | \
c45021f2
NC
129 sed -e '/^.if n .na/d' > $@.T$$$$ && \
130 mv -f $@.T$$$$ $@) || \
131 (rm -f $@.T$$$$ && exit 1)
132 rm -f as.pod
d5fbea21
DJ
133
134MAINTAINERCLEANFILES += as.info
135
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.
139if GENINSRC_NEVER
140DISTCLEANFILES = as.info
141endif
This page took 0.606429 seconds and 4 git commands to generate.