xref: /netbsd-src/external/gpl3/binutils/dist/gas/doc/local.mk (revision dd7241df2fae9da4ea2bd20a68f001fa86ecf909)
1## Process this file with automake to generate Makefile.in
2#
3#   Copyright (C) 2012-2024 Free Software Foundation, Inc.
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.
9#
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.
14#
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#
19
20# What version of the manual you want; "all" includes everything
21CONFIG=all
22
23# Options to extract the man page from as.texi
24MANCONF = -Dman
25
26TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
27
28POD2MAN = pod2man --center="GNU Development Tools" \
29	--release="binutils-$(VERSION)" --section=1
30
31man_MANS = %D%/as.1
32
33info_TEXINFOS = %D%/as.texi
34%C%_as_TEXINFOS = %D%/asconfig.texi $(CPU_DOCS)
35
36AM_MAKEINFOFLAGS = -I "$(srcdir)/%D%" -I %D% -I "$(srcdir)/../libiberty" \
37		   -I "$(srcdir)/../bfd/doc" -I ../bfd/doc \
38		   --no-split
39TEXI2DVI = texi2dvi -I "$(srcdir)/%D%" -I %D% -I "$(srcdir)/../libiberty" \
40		   -I "$(srcdir)/../bfd/doc" -I ../bfd/doc
41
42%D%/asconfig.texi: %D%/$(CONFIG).texi %D%/$(am__dirstamp)
43	$(AM_V_at)rm -f %D%/asconfig.texi
44	$(AM_V_GEN)cp $(srcdir)/%D%/$(CONFIG).texi %D%/asconfig.texi && touch -m -r $(srcdir)/%D%/$(CONFIG).texi %D%/asconfig.texi
45	$(AM_V_at)chmod u+w %D%/asconfig.texi
46
47CPU_DOCS = \
48	%D%/c-aarch64.texi \
49	%D%/c-alpha.texi \
50	%D%/c-arc.texi \
51	%D%/c-arm.texi \
52	%D%/c-avr.texi \
53	%D%/c-bfin.texi \
54	%D%/c-bpf.texi \
55	%D%/c-cr16.texi \
56	%D%/c-cris.texi \
57	%D%/c-csky.texi \
58	%D%/c-d10v.texi \
59	%D%/c-epiphany.texi \
60	%D%/c-h8300.texi \
61	%D%/c-hppa.texi \
62	%D%/c-i386.texi \
63	%D%/c-ip2k.texi \
64	%D%/c-kvx.texi \
65	%D%/c-lm32.texi \
66	%D%/c-m32c.texi \
67	%D%/c-m32r.texi \
68	%D%/c-m68hc11.texi \
69	%D%/c-m68k.texi \
70	%D%/c-s12z.texi \
71	%D%/c-metag.texi \
72	%D%/c-microblaze.texi \
73	%D%/c-mips.texi \
74	%D%/c-mmix.texi \
75	%D%/c-mt.texi \
76	%D%/c-msp430.texi \
77	%D%/c-nios2.texi \
78	%D%/c-nds32.texi \
79	%D%/c-ns32k.texi \
80	%D%/c-or1k.texi \
81	%D%/c-pdp11.texi \
82	%D%/c-pj.texi \
83	%D%/c-ppc.texi \
84	%D%/c-pru.texi \
85	%D%/c-rl78.texi \
86	%D%/c-riscv.texi \
87	%D%/c-rx.texi \
88	%D%/c-s390.texi \
89	%D%/c-score.texi \
90	%D%/c-sh.texi \
91	%D%/c-sparc.texi \
92	%D%/c-tic54x.texi \
93	%D%/c-tic6x.texi \
94	%D%/c-tilegx.texi \
95	%D%/c-tilepro.texi \
96	%D%/c-v850.texi \
97	%D%/c-vax.texi \
98	%D%/c-visium.texi \
99	%D%/c-xgate.texi \
100	%D%/c-xstormy16.texi \
101	%D%/c-xtensa.texi \
102	%D%/c-z80.texi \
103	%D%/c-z8k.texi
104
105# This one isn't ready for prime time yet.  Not even a little bit.
106
107noinst_TEXINFOS = %D%/internals.texi
108
109MAINTAINERCLEANFILES += %D%/asconfig.texi
110
111# Maintenance
112
113# We need it for the taz target in ../Makefile.in.
114info-local: $(MANS)
115
116# Build the man page from the texinfo file
117# The sed command removes the no-adjust Nroff command so that
118# the man output looks standard.
119#%D%/as.1: $(srcdir)/%D%/as.texi %D%/asconfig.texi $(CPU_DOCS) %D%/$(am__dirstamp)
120#	$(AM_V_GEN)touch $@
121#	$(AM_V_at)-$(TEXI2POD) $(MANCONF) < $(srcdir)/%D%/as.texi > %D%/as.pod
122#	$(AM_V_at)-($(POD2MAN) %D%/as.pod | \
123#	        sed -e '/^.if n .na/d' > $@.T$$$$ && \
124#	        mv -f $@.T$$$$ $@) || \
125#	        (rm -f $@.T$$$$ && exit 1)
126#	$(AM_V_at)rm -f %D%/as.pod
127
128html-local: %D%/as/index.html
129%D%/as/index.html: %D%/as.texi $(%C%_as_TEXINFOS) %D%/$(am__dirstamp)
130	$(AM_V_GEN)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
131	  --split=node -I$(srcdir)/%D% -o %D%/as $(srcdir)/%D%/as.texi
132
133MAINTAINERCLEANFILES += %D%/as.info
134