1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2012-2022 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 # What version of the manual you want; "all" includes everything
23 # Options to extract the man page from as.texinfo
26 TEXI2POD
= perl
$(top_srcdir
)/..
/etc
/texi2pod.pl
$(AM_MAKEINFOFLAGS
)
28 POD2MAN
= pod2man
--center
="GNU Development Tools" \
29 --release
="binutils-$(VERSION)" --section
=1
31 # List of man pages generated from binutils.texi
47 %D
%/$(DEMANGLER_NAME
).1
49 info_TEXINFOS
= %D
%/binutils.texi
50 binutils_TEXI
= $(srcdir)/%D
%/binutils.texi
52 AM_MAKEINFOFLAGS
= -I
"$(srcdir)/%D%" -I
"$(top_srcdir)/../libiberty" \
53 -I
"$(top_srcdir)/../bfd/doc" -I ..
/bfd
/doc \
55 TEXI2DVI
= texi2dvi -I
"$(srcdir)/%D%" -I
"$(top_srcdir)/../libiberty" \
56 -I
"$(top_srcdir)/../bfd/doc" -I ..
/bfd
/doc
58 # Man page generation from texinfo
59 %D
%/addr2line
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
61 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Daddr2line
< $(binutils_TEXI
) > addr2line.pod
62 $(AM_V_at
)-($(POD2MAN
) addr2line.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
63 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
64 $(AM_V_at
)rm -f addr2line.pod
66 %D
%/ar.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
68 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dar
< $(binutils_TEXI
) > ar.pod
69 $(AM_V_at
)-($(POD2MAN
) ar.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
70 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
71 $(AM_V_at
)rm -f
ar.pod
73 %D
%/dlltool
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
75 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Ddlltool
< $(binutils_TEXI
) > dlltool.pod
76 $(AM_V_at
)-($(POD2MAN
) dlltool.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
77 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
78 $(AM_V_at
)rm -f dlltool.pod
80 %D
%/nm
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
82 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dnm
< $(binutils_TEXI
) > nm.pod
83 $(AM_V_at
)-($(POD2MAN
) nm.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
84 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
85 $(AM_V_at
)rm -f nm.pod
87 %D
%/objcopy
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
89 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dobjcopy
< $(binutils_TEXI
) > objcopy.pod
90 $(AM_V_at
)-($(POD2MAN
) objcopy.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
91 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
92 $(AM_V_at
)rm -f objcopy.pod
94 %D
%/objdump
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
96 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dobjdump
< $(binutils_TEXI
) > objdump.pod
97 $(AM_V_at
)-($(POD2MAN
) objdump.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
98 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
99 $(AM_V_at
)rm -f objdump.pod
101 %D
%/ranlib
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
103 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dranlib
< $(binutils_TEXI
) > ranlib.pod
104 $(AM_V_at
)-($(POD2MAN
) ranlib.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
105 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
106 $(AM_V_at
)rm -f ranlib.pod
108 %D
%/readelf
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
110 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dreadelf
< $(binutils_TEXI
) > readelf.pod
111 $(AM_V_at
)-($(POD2MAN
) readelf.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
112 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
113 $(AM_V_at
)rm -f readelf.pod
115 %D
%/size
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
117 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dsize
< $(binutils_TEXI
) > size.pod
118 $(AM_V_at
)-($(POD2MAN
) size.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
119 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
120 $(AM_V_at
)rm -f size.pod
122 %D
%/strings
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
124 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dstrings
< $(binutils_TEXI
) > strings.pod
125 $(AM_V_at
)-($(POD2MAN
) strings.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
126 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
127 $(AM_V_at
)rm -f strings.pod
129 %D
%/strip.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
131 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dstrip
< $(binutils_TEXI
) > strip.pod
132 $(AM_V_at
)-($(POD2MAN
) strip.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
133 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
134 $(AM_V_at
)rm -f
strip.pod
136 %D
%/elfedit
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
138 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Delfedit
< $(binutils_TEXI
) > elfedit.pod
139 $(AM_V_at
)-($(POD2MAN
) elfedit.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
140 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
141 $(AM_V_at
)rm -f elfedit.pod
143 %D
%/windres
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
145 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dwindres
< $(binutils_TEXI
) > windres.pod
146 $(AM_V_at
)-($(POD2MAN
) windres.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
147 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
148 $(AM_V_at
)rm -f windres.pod
150 %D
%/windmc
.1: $(binutils_TEXI
) doc
/$(am__dirstamp
)
152 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dwindmc
< $(binutils_TEXI
) > windmc.pod
153 $(AM_V_at
)-($(POD2MAN
) windmc.pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
154 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
155 $(AM_V_at
)rm -f windmc.pod
157 %D
%/cxxfilt.man
: $(binutils_TEXI
) doc
/$(am__dirstamp
)
159 $(AM_V_at
)-$(TEXI2POD
) $(MANCONF
) -Dcxxfilt
< $(binutils_TEXI
) > $(DEMANGLER_NAME
).pod
160 $(AM_V_at
)-($(POD2MAN
) $(DEMANGLER_NAME
).pod | sed
-e
'/^.if n .na/d' > $@.T
$$$$ && \
161 mv
-f
$@.T
$$$$ $@
) ||
(rm -f
$@.T
$$$$ && exit
1)
162 $(AM_V_at
)rm -f
$(DEMANGLER_NAME
).pod
164 MAINTAINERCLEANFILES
+= $(man_MANS
) %D
%/binutils.
info %D
%/cxxfilt.man
166 %D
%/$(DEMANGLER_NAME
).1: %D
%/cxxfilt.man Makefile doc
/$(am__dirstamp
)
167 $(AM_V_GEN
)if
test -f
%D
%/cxxfilt.man
; then \
168 man
=%D
%/cxxfilt.man
; \
170 man
=$(srcdir)/%D
%/cxxfilt.man
; \
172 sed
-e
's/@PROGRAM@/$(DEMANGLER_NAME)/' \
173 -e
's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
174 > %D
%/$(DEMANGLER_NAME
).1
176 html-local
: %D
%/binutils
/index.html
177 %D
%/binutils
/index.html
: %D
%/binutils.texi
$(binutils_TEXINFOS
)
178 $(AM_V_GEN
)$(MAKEINFOHTML
) $(AM_MAKEINFOHTMLFLAGS
) $(MAKEINFOFLAGS
) \
179 --split
=node
-I
$(srcdir) $(srcdir)/%D
%/binutils.texi
183 # We need it for the taz target in ../Makefile.in.