]>
Commit | Line | Data |
---|---|---|
bde299e0 MF |
1 | ## Process this file with automake to generate Makefile.in |
2 | # | |
d87bef3a | 3 | # Copyright (C) 2012-2023 Free Software Foundation, Inc. |
bde299e0 MF |
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 | |
21 | CONFIG=all | |
22 | ||
23 | # Options to extract the man page from as.texi | |
24 | MANCONF = -Dman | |
25 | ||
26 | TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS) | |
27 | ||
28 | POD2MAN = pod2man --center="GNU Development Tools" \ | |
29 | --release="binutils-$(VERSION)" --section=1 | |
30 | ||
31 | man_MANS = %D%/as.1 | |
32 | ||
33 | info_TEXINFOS = %D%/as.texi | |
34 | %C%_as_TEXINFOS = %D%/asconfig.texi $(CPU_DOCS) | |
35 | ||
36 | AM_MAKEINFOFLAGS = -I "$(srcdir)/%D%" -I %D% -I "$(srcdir)/../libiberty" \ | |
37 | -I "$(srcdir)/../bfd/doc" -I ../bfd/doc \ | |
38 | --no-split | |
39 | TEXI2DVI = 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 | |
8034b0ba | 44 | $(AM_V_GEN)cp -p $(srcdir)/%D%/$(CONFIG).texi %D%/asconfig.texi |
bde299e0 MF |
45 | $(AM_V_at)chmod u+w %D%/asconfig.texi |
46 | ||
47 | CPU_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-lm32.texi \ | |
65 | %D%/c-m32c.texi \ | |
66 | %D%/c-m32r.texi \ | |
67 | %D%/c-m68hc11.texi \ | |
68 | %D%/c-m68k.texi \ | |
69 | %D%/c-s12z.texi \ | |
70 | %D%/c-metag.texi \ | |
71 | %D%/c-microblaze.texi \ | |
72 | %D%/c-mips.texi \ | |
73 | %D%/c-mmix.texi \ | |
74 | %D%/c-mt.texi \ | |
75 | %D%/c-msp430.texi \ | |
76 | %D%/c-nios2.texi \ | |
77 | %D%/c-nds32.texi \ | |
78 | %D%/c-ns32k.texi \ | |
79 | %D%/c-or1k.texi \ | |
80 | %D%/c-pdp11.texi \ | |
81 | %D%/c-pj.texi \ | |
82 | %D%/c-ppc.texi \ | |
83 | %D%/c-pru.texi \ | |
84 | %D%/c-rl78.texi \ | |
85 | %D%/c-riscv.texi \ | |
86 | %D%/c-rx.texi \ | |
87 | %D%/c-s390.texi \ | |
88 | %D%/c-score.texi \ | |
89 | %D%/c-sh.texi \ | |
90 | %D%/c-sparc.texi \ | |
91 | %D%/c-tic54x.texi \ | |
92 | %D%/c-tic6x.texi \ | |
93 | %D%/c-tilegx.texi \ | |
94 | %D%/c-tilepro.texi \ | |
95 | %D%/c-v850.texi \ | |
96 | %D%/c-vax.texi \ | |
97 | %D%/c-visium.texi \ | |
98 | %D%/c-xgate.texi \ | |
99 | %D%/c-xstormy16.texi \ | |
100 | %D%/c-xtensa.texi \ | |
101 | %D%/c-z80.texi \ | |
102 | %D%/c-z8k.texi | |
103 | ||
bde299e0 MF |
104 | # This one isn't ready for prime time yet. Not even a little bit. |
105 | ||
106 | noinst_TEXINFOS = %D%/internals.texi | |
107 | ||
108 | MAINTAINERCLEANFILES += %D%/asconfig.texi | |
109 | ||
110 | # Maintenance | |
111 | ||
112 | # We need it for the taz target in ../Makefile.in. | |
113 | info-local: $(MANS) | |
114 | ||
115 | # Build the man page from the texinfo file | |
116 | # The sed command removes the no-adjust Nroff command so that | |
117 | # the man output looks standard. | |
118 | %D%/as.1: $(srcdir)/%D%/as.texi %D%/asconfig.texi $(CPU_DOCS) %D%/$(am__dirstamp) | |
119 | $(AM_V_GEN)touch $@ | |
120 | $(AM_V_at)-$(TEXI2POD) $(MANCONF) < $(srcdir)/%D%/as.texi > %D%/as.pod | |
121 | $(AM_V_at)-($(POD2MAN) %D%/as.pod | \ | |
122 | sed -e '/^.if n .na/d' > $@.T$$$$ && \ | |
123 | mv -f $@.T$$$$ $@) || \ | |
124 | (rm -f $@.T$$$$ && exit 1) | |
125 | $(AM_V_at)rm -f %D%/as.pod | |
126 | ||
127 | html-local: %D%/as/index.html | |
128 | %D%/as/index.html: %D%/as.texi $(%C%_as_TEXINFOS) %D%/$(am__dirstamp) | |
129 | $(AM_V_GEN)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ | |
130 | --split=node -I$(srcdir)/%D% -o %D%/as $(srcdir)/%D%/as.texi | |
131 | ||
132 | MAINTAINERCLEANFILES += %D%/as.info |