1 |
38 |
julius |
## Process this file with automake to generate Makefile.in
|
2 |
|
|
|
3 |
|
|
AUTOMAKE_OPTIONS = cygnus
|
4 |
|
|
|
5 |
|
|
# What version of the manual you want; "all" includes everything
|
6 |
|
|
CONFIG=all
|
7 |
|
|
|
8 |
|
|
# Options to extract the man page from as.texinfo
|
9 |
|
|
MANCONF = -Dman
|
10 |
|
|
|
11 |
|
|
TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
|
12 |
|
|
|
13 |
|
|
POD2MAN = pod2man --center="GNU Development Tools" \
|
14 |
|
|
--release="binutils-$(VERSION)" --section=1
|
15 |
|
|
|
16 |
|
|
# List of man pages generated from binutils.texi
|
17 |
|
|
man_MANS = \
|
18 |
|
|
addr2line.1 \
|
19 |
|
|
ar.1 \
|
20 |
|
|
dlltool.1 \
|
21 |
|
|
nlmconv.1 \
|
22 |
|
|
nm.1 \
|
23 |
|
|
objcopy.1 \
|
24 |
|
|
objdump.1 \
|
25 |
|
|
ranlib.1 \
|
26 |
|
|
readelf.1 \
|
27 |
|
|
size.1 \
|
28 |
|
|
strings.1 \
|
29 |
|
|
strip.1 \
|
30 |
|
|
windres.1 \
|
31 |
|
|
windmc.1 \
|
32 |
|
|
$(DEMANGLER_NAME).1
|
33 |
|
|
|
34 |
|
|
info_TEXINFOS = binutils.texi
|
35 |
|
|
binutils_TEXI = $(srcdir)/binutils.texi
|
36 |
|
|
|
37 |
|
|
AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
|
38 |
|
|
-I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
|
39 |
|
|
TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
|
40 |
|
|
-I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
|
41 |
|
|
|
42 |
|
|
# Man page generation from texinfo
|
43 |
|
|
addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
44 |
|
|
touch $@
|
45 |
|
|
-$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
|
46 |
|
|
-($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
47 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
48 |
|
|
rm -f addr2line.pod
|
49 |
|
|
|
50 |
|
|
ar.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
51 |
|
|
touch $@
|
52 |
|
|
-$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
|
53 |
|
|
-($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
54 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
55 |
|
|
rm -f ar.pod
|
56 |
|
|
|
57 |
|
|
dlltool.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
58 |
|
|
touch $@
|
59 |
|
|
-$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
|
60 |
|
|
-($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
61 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
62 |
|
|
rm -f dlltool.pod
|
63 |
|
|
|
64 |
|
|
nlmconv.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
65 |
|
|
touch $@
|
66 |
|
|
-$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
|
67 |
|
|
-($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
68 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
69 |
|
|
rm -f nlmconv.pod
|
70 |
|
|
|
71 |
|
|
nm.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
72 |
|
|
touch $@
|
73 |
|
|
-$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
|
74 |
|
|
-($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
75 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
76 |
|
|
rm -f nm.pod
|
77 |
|
|
|
78 |
|
|
objcopy.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
79 |
|
|
touch $@
|
80 |
|
|
-$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
|
81 |
|
|
-($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
82 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
83 |
|
|
rm -f objcopy.pod
|
84 |
|
|
|
85 |
|
|
objdump.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
86 |
|
|
touch $@
|
87 |
|
|
-$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
|
88 |
|
|
-($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
89 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
90 |
|
|
rm -f objdump.pod
|
91 |
|
|
|
92 |
|
|
ranlib.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
93 |
|
|
touch $@
|
94 |
|
|
-$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
|
95 |
|
|
-($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
96 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
97 |
|
|
rm -f ranlib.pod
|
98 |
|
|
|
99 |
|
|
readelf.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
100 |
|
|
touch $@
|
101 |
|
|
-$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
|
102 |
|
|
-($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
103 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
104 |
|
|
rm -f readelf.pod
|
105 |
|
|
|
106 |
|
|
size.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
107 |
|
|
touch $@
|
108 |
|
|
-$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
|
109 |
|
|
-($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
110 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
111 |
|
|
rm -f size.pod
|
112 |
|
|
|
113 |
|
|
strings.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
114 |
|
|
touch $@
|
115 |
|
|
-$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
|
116 |
|
|
-($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
117 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
118 |
|
|
rm -f strings.pod
|
119 |
|
|
|
120 |
|
|
strip.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
121 |
|
|
touch $@
|
122 |
|
|
-$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
|
123 |
|
|
-($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
124 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
125 |
|
|
rm -f strip.pod
|
126 |
|
|
|
127 |
|
|
windres.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
128 |
|
|
touch $@
|
129 |
|
|
-$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
|
130 |
|
|
-($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
131 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
132 |
|
|
rm -f windres.pod
|
133 |
|
|
|
134 |
|
|
windmc.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
135 |
|
|
touch $@
|
136 |
|
|
-$(TEXI2POD) $(MANCONF) -Dwindmc < $(binutils_TEXI) > windmc.pod
|
137 |
|
|
-($(POD2MAN) windmc.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
138 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
139 |
|
|
rm -f windmc.pod
|
140 |
|
|
|
141 |
|
|
cxxfilt.man: $(binutils_TEXI) $(binutils_TEXINFOS)
|
142 |
|
|
touch $@
|
143 |
|
|
-$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
|
144 |
|
|
-($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
145 |
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
146 |
|
|
rm -f $(DEMANGLER_NAME).pod
|
147 |
|
|
|
148 |
|
|
MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
|
149 |
|
|
|
150 |
|
|
$(DEMANGLER_NAME).1: cxxfilt.man Makefile
|
151 |
|
|
if test -f cxxfilt.man; then \
|
152 |
|
|
man=cxxfilt.man; \
|
153 |
|
|
else \
|
154 |
|
|
man=$(srcdir)/cxxfilt.man; \
|
155 |
|
|
fi; \
|
156 |
|
|
sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
|
157 |
|
|
-e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
|
158 |
|
|
> $(DEMANGLER_NAME).1
|
159 |
|
|
|
160 |
|
|
# We want install to imply install-info as per GNU standards, despite the
|
161 |
|
|
# cygnus option.
|
162 |
|
|
install-data-local: install-info
|
163 |
|
|
|
164 |
|
|
html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
165 |
|
|
|
166 |
|
|
install-html: install-html-am
|
167 |
|
|
|
168 |
|
|
install-html-am: $(HTMLS)
|
169 |
|
|
@$(NORMAL_INSTALL)
|
170 |
|
|
test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
|
171 |
|
|
@list='$(HTMLS)'; for p in $$list; do \
|
172 |
|
|
if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
|
173 |
|
|
f=$(html__strip_dir) \
|
174 |
|
|
if test -d "$$d$$p"; then \
|
175 |
|
|
echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
|
176 |
|
|
$(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
|
177 |
|
|
echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
|
178 |
|
|
$(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
|
179 |
|
|
else \
|
180 |
|
|
echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
|
181 |
|
|
$(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
|
182 |
|
|
fi; \
|
183 |
|
|
done
|
184 |
|
|
|
185 |
|
|
MAINTAINERCLEANFILES = binutils.info
|
186 |
|
|
|
187 |
|
|
# Automake 1.9 will only build info files in the objdir if they are
|
188 |
|
|
# mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
|
189 |
|
|
# though, so we use a bogus condition.
|
190 |
|
|
if GENINSRC_NEVER
|
191 |
|
|
DISTCLEANFILES = binutils.info
|
192 |
|
|
endif
|
193 |
|
|
|
194 |
|
|
# Maintenance
|
195 |
|
|
|
196 |
|
|
# We need it for the taz target in ../../Makefile.in.
|
197 |
|
|
info-local: $(MANS)
|