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