bfd/
[deliverable/binutils-gdb.git] / bfd / doc / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.9 cygnus
4
5 DOCFILES = aoutx.texi archive.texi archures.texi \
6 bfdt.texi cache.texi coffcode.texi \
7 core.texi elf.texi elfcode.texi format.texi \
8 libbfd.texi bfdwin.texi bfdio.texi \
9 opncls.texi reloc.texi section.texi \
10 syms.texi targets.texi init.texi hash.texi linker.texi \
11 mmo.texi
12
13 PROTOS = archive.p archures.p bfd.p \
14 core.p format.p \
15 bfdio.p bfdwin.p \
16 libbfd.p opncls.p reloc.p \
17 section.p syms.p targets.p \
18 format.p core.p init.p
19
20 IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip coffcode.ip
21
22 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
23 # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
24 # you don't need these three:
25 SRCDOC = $(srcdir)/../aoutx.h $(srcdir)/../archive.c \
26 $(srcdir)/../archures.c $(srcdir)/../bfd.c \
27 $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \
28 $(srcdir)/../cache.c $(srcdir)/../coffcode.h \
29 $(srcdir)/../corefile.c $(srcdir)/../elf.c \
30 $(srcdir)/../elfcode.h $(srcdir)/../format.c \
31 $(srcdir)/../libbfd.c $(srcdir)/../opncls.c \
32 $(srcdir)/../reloc.c $(srcdir)/../section.c \
33 $(srcdir)/../syms.c $(srcdir)/../targets.c \
34 $(srcdir)/../hash.c $(srcdir)/../linker.c \
35 $(srcdir)/../mmo.c
36
37 SRCPROT = $(srcdir)/../archive.c $(srcdir)/../archures.c \
38 $(srcdir)/../bfd.c $(srcdir)/../coffcode.h $(srcdir)/../corefile.c \
39 $(srcdir)/../format.c $(srcdir)/../libbfd.c \
40 $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \
41 $(srcdir)/../opncls.c $(srcdir)/../reloc.c \
42 $(srcdir)/../section.c $(srcdir)/../syms.c \
43 $(srcdir)/../targets.c $(srcdir)/../init.c
44
45 SRCIPROT = $(srcdir)/../cache.c $(srcdir)/../libbfd.c \
46 $(srcdir)/../bfdio.c $(srcdir)/../bfdwin.c \
47 $(srcdir)/../reloc.c $(srcdir)/../cpu-h8300.c \
48 $(srcdir)/../cpu-i960.c $(srcdir)/../archures.c \
49 $(srcdir)/../init.c
50
51 TEXIDIR = $(srcdir)/../../texinfo/fsf
52
53 info_TEXINFOS = bfd.texinfo
54 bfd_TEXINFOS = $(DOCFILES) bfdsumm.texi
55
56 MKDOC = chew$(EXEEXT_FOR_BUILD)
57
58 INCLUDES = -I.. -I$(srcdir)/.. -I$(srcdir)/../../include \
59 -I$(srcdir)/../../intl -I../../intl
60
61 $(MKDOC): $(srcdir)/chew.c
62 $(CC_FOR_BUILD) -o chew.$$$$ $(srcdir)/chew.c \
63 $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(H_CFLAGS) \
64 $(INCLUDES); \
65 $(SHELL) $(srcdir)/../../move-if-change chew.$$$$ $(MKDOC)
66
67 chew.o: chew.c
68 $(CC_FOR_BUILD) -c $(INCLUDES) $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c
69
70 protos: libbfd.h libcoff.h bfd.h
71
72 # We can't replace these rules with an implicit rule, because
73 # makes without VPATH support couldn't find the .h files in `..'.
74
75 # We do not depend on chew directly so that we can distribute the info
76 # files, and permit people to rebuild them, without requiring the makeinfo
77 # program. If somebody tries to rebuild info, but none of the .texi files
78 # have changed, then nothing will be rebuilt.
79
80 aoutx.texi: chew.c $(srcdir)/../aoutx.h $(srcdir)/doc.str
81 $(MAKE) $(MKDOC)
82 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.tmp
83 $(SHELL) $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi
84
85 archive.texi: chew.c $(srcdir)/../archive.c $(srcdir)/doc.str
86 $(MAKE) $(MKDOC)
87 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.tmp
88 $(SHELL) $(srcdir)/../../move-if-change archive.tmp archive.texi
89
90 archures.texi: chew.c $(srcdir)/../archures.c $(srcdir)/doc.str
91 $(MAKE) $(MKDOC)
92 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp
93 $(SHELL) $(srcdir)/../../move-if-change archures.tmp archures.texi
94
95 # We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
96 # bfd.texinfo on an 8.3 filesystem.
97 bfdt.texi: chew.c $(srcdir)/../bfd.c $(srcdir)/doc.str
98 $(MAKE) $(MKDOC)
99 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp
100 $(SHELL) $(srcdir)/../../move-if-change bfd.tmp bfdt.texi
101
102 cache.texi: chew.c $(srcdir)/../cache.c $(srcdir)/doc.str
103 $(MAKE) $(MKDOC)
104 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp
105 $(SHELL) $(srcdir)/../../move-if-change cache.tmp cache.texi
106
107 coffcode.texi: chew.c $(srcdir)/../coffcode.h $(srcdir)/doc.str
108 $(MAKE) $(MKDOC)
109 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.tmp
110 $(SHELL) $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi
111
112 core.texi: chew.c $(srcdir)/../corefile.c $(srcdir)/doc.str
113 $(MAKE) $(MKDOC)
114 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.tmp
115 $(SHELL) $(srcdir)/../../move-if-change core.tmp core.texi
116
117 elf.texi: chew.c $(srcdir)/../elf.c $(srcdir)/doc.str
118 $(MAKE) $(MKDOC)
119 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp
120 $(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi
121
122 elfcode.texi: chew.c $(srcdir)/../elfcode.h $(srcdir)/doc.str
123 $(MAKE) $(MKDOC)
124 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.tmp
125 $(SHELL) $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi
126
127 mmo.texi: chew.c $(srcdir)/../mmo.c $(srcdir)/doc.str
128 $(MAKE) $(MKDOC)
129 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../mmo.c >mmo.tmp
130 $(SHELL) $(srcdir)/../../move-if-change mmo.tmp mmo.texi
131
132 format.texi: chew.c $(srcdir)/../format.c $(srcdir)/doc.str
133 $(MAKE) $(MKDOC)
134 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.tmp
135 $(SHELL) $(srcdir)/../../move-if-change format.tmp format.texi
136
137 libbfd.texi: chew.c $(srcdir)/../libbfd.c $(srcdir)/doc.str
138 $(MAKE) $(MKDOC)
139 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp
140 $(SHELL) $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi
141
142 bfdio.texi: chew.c $(srcdir)/../bfdio.c $(srcdir)/doc.str
143 $(MAKE) $(MKDOC)
144 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdio.c >bfdio.tmp
145 $(SHELL) $(srcdir)/../../move-if-change bfdio.tmp bfdio.texi
146
147 bfdwin.texi: chew.c $(srcdir)/../bfdwin.c $(srcdir)/doc.str
148 $(MAKE) $(MKDOC)
149 ./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdwin.c >bfdwin.tmp
150 $(SHELL) $(srcdir)/../../move-if-change bfdwin.tmp bfdwin.texi
151
152 opncls.texi: chew.c $(srcdir)/../opncls.c $(srcdir)/doc.str
153 $(MAKE) $(MKDOC)
154 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../opncls.c >opncls.tmp
155 $(SHELL) $(srcdir)/../../move-if-change opncls.tmp opncls.texi
156
157 reloc.texi: chew.c $(srcdir)/../reloc.c $(srcdir)/doc.str
158 $(MAKE) $(MKDOC)
159 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.tmp
160 $(SHELL) $(srcdir)/../../move-if-change reloc.tmp reloc.texi
161
162 section.texi: chew.c $(srcdir)/../section.c $(srcdir)/doc.str
163 $(MAKE) $(MKDOC)
164 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.tmp
165 $(SHELL) $(srcdir)/../../move-if-change section.tmp section.texi
166
167 syms.texi: chew.c $(srcdir)/../syms.c $(srcdir)/doc.str
168 $(MAKE) $(MKDOC)
169 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.tmp
170 $(SHELL) $(srcdir)/../../move-if-change syms.tmp syms.texi
171
172 targets.texi: chew.c $(srcdir)/../targets.c $(srcdir)/doc.str
173 $(MAKE) $(MKDOC)
174 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.tmp
175 $(SHELL) $(srcdir)/../../move-if-change targets.tmp targets.texi
176
177 init.texi: chew.c $(srcdir)/../init.c $(srcdir)/doc.str
178 $(MAKE) $(MKDOC)
179 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.tmp
180 $(SHELL) $(srcdir)/../../move-if-change init.tmp init.texi
181
182 hash.texi: chew.c $(srcdir)/../hash.c $(srcdir)/doc.str
183 $(MAKE) $(MKDOC)
184 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.tmp
185 $(SHELL) $(srcdir)/../../move-if-change hash.tmp hash.texi
186
187 linker.texi: chew.c $(srcdir)/../linker.c $(srcdir)/doc.str
188 $(MAKE) $(MKDOC)
189 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.tmp
190 $(SHELL) $(srcdir)/../../move-if-change linker.tmp linker.texi
191
192 LIBBFD_H_DEP = \
193 $(srcdir)/../libbfd-in.h \
194 $(srcdir)/../init.c \
195 $(srcdir)/../libbfd.c \
196 $(srcdir)/../bfdio.c \
197 $(srcdir)/../bfdwin.c \
198 $(srcdir)/../cache.c \
199 $(srcdir)/../reloc.c \
200 $(srcdir)/../archures.c \
201 $(srcdir)/../elf.c \
202 $(srcdir)/header.sed \
203 $(srcdir)/proto.str \
204 $(MKDOC)
205
206 libbfd.h: $(LIBBFD_H_DEP)
207 echo "$(LIBBFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@
208 for file in $(LIBBFD_H_DEP); do \
209 case $$file in \
210 *-in.h) cat $$file >> $@ ;; \
211 */header.sed) break ;; \
212 *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
213 -e 's,$$,. */,' >> $@ ; \
214 ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \
215 esac; \
216 done
217
218 LIBCOFF_H_DEP = \
219 $(srcdir)/../libcoff-in.h \
220 $(srcdir)/../coffcode.h \
221 $(srcdir)/header.sed \
222 $(srcdir)/proto.str \
223 $(MKDOC)
224
225 libcoff.h: $(LIBCOFF_H_DEP)
226 echo "$(LIBCOFF_H_DEP)" | sed -f $(srcdir)/header.sed > $@
227 for file in $(LIBCOFF_H_DEP); do \
228 case $$file in \
229 *-in.h) cat $$file >> $@ ;; \
230 */header.sed) break ;; \
231 *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
232 -e 's,$$,. */,' >> $@ ; \
233 ./$(MKDOC) -i -f $(srcdir)/proto.str < $$file >> $@ ;; \
234 esac; \
235 done
236
237 BFD_H_DEP = \
238 $(srcdir)/../bfd-in.h \
239 $(srcdir)/../init.c \
240 $(srcdir)/../opncls.c \
241 $(srcdir)/../libbfd.c \
242 $(srcdir)/../bfdio.c \
243 $(srcdir)/../bfdwin.c \
244 $(srcdir)/../section.c \
245 $(srcdir)/../archures.c \
246 $(srcdir)/../reloc.c \
247 $(srcdir)/../syms.c \
248 $(srcdir)/../bfd.c \
249 $(srcdir)/../archive.c \
250 $(srcdir)/../corefile.c \
251 $(srcdir)/../targets.c \
252 $(srcdir)/../format.c \
253 $(srcdir)/../linker.c \
254 $(srcdir)/../simple.c \
255 $(srcdir)/header.sed \
256 $(srcdir)/proto.str \
257 $(srcdir)/../version.h \
258 $(MKDOC)
259
260 bfd.h: $(BFD_H_DEP)
261 echo "$(BFD_H_DEP)" | sed -f $(srcdir)/header.sed > $@
262 for file in $(BFD_H_DEP); do \
263 case $$file in \
264 *-in.h) cat $$file >> $@ ;; \
265 */header.sed) break ;; \
266 *) echo $$file | sed -e 's,.*/,,' -e 's,^,/* Extracted from ,' \
267 -e 's,$$,. */,' >> $@ ; \
268 ./$(MKDOC) -f $(srcdir)/proto.str < $$file >> $@ ;; \
269 esac; \
270 done
271 echo "#ifdef __cplusplus" >> $@
272 echo "}" >> $@
273 echo "#endif" >> $@
274 echo "#endif" >> $@
275
276 noinst_TEXINFOS = bfdint.texi
277
278 MOSTLYCLEANFILES = $(MKDOC) *.o
279
280 CLEANFILES = *.p *.ip
281
282 DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log
283
284 MAINTAINERCLEANFILES = $(DOCFILES)
285
286 # We want install to imply install-info as per GNU standards, despite the
287 # cygnus option.
288 install: install-info
289
290 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
291
292 install-html: install-html-am
293
294 install-html-am: $(HTMLS)
295 @$(NORMAL_INSTALL)
296 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
297 @list='$(HTMLS)'; for p in $$list; do \
298 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
299 f=$(html__strip_dir) \
300 if test -d "$$d$$p"; then \
301 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
302 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
303 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
304 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
305 else \
306 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
307 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
308 fi; \
309 done
310
311 MAINTAINERCLEANFILES += bfd.info
312
313 # Automake 1.9 will only build info files in the objdir if they are
314 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
315 # though, so we use a bogus condition.
316 if GENINSRC_NEVER
317 DISTCLEANFILES += bfd.info
318 endif
This page took 0.043108 seconds and 5 git commands to generate.