* hosts/h-*.h: Configure fopen using ../include/fopen-*.h
[deliverable/binutils-gdb.git] / bfd / doc / Makefile
1 .SUFFIXES: .texi .o .c .h .p .ip
2 VPATH=..
3 .c.texi:
4 ./scanit $< $@
5
6 .h.texi:
7 ./scanit $< $@
8
9 .c.p:
10 ./scanph $< $@
11
12 .h.p:
13 ./scanph $< $@
14
15 .c.ip:
16 ./scanph -i $< $@
17
18 # main GDB source directory
19 srcdir = ..
20
21 TEXIDIR=${srcdir}/../texinfo/fsf
22
23 DOCFILES = aoutx.texi archive.texi archures.texi \
24 bfd.texi cache.texi coffcode.texi \
25 core.texi format.texi libbfd.texi \
26 opncls.texi reloc.texi section.texi \
27 syms.texi targets.texi init.texi ctor.texi
28
29
30 PROTOS = archive.p archures.p bfd.p \
31 coffcode.p core.p format.p \
32 libbfd.p opncls.p reloc.p \
33 section.p syms.p targets.p \
34 format.p coffcode.p core.p machines.p init.p
35
36 IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip
37
38 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
39 # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
40 # you don't need these three:
41 SRCDOC = aoutx.h archive.c archures.c \
42 bfd.c cache.c coffcode.h \
43 core.c format.c libbfd.c \
44 opncls.c reloc.c section.c \
45 syms.c targets.c init.c
46
47 SRCPROT = archive.c archures.c bfd.c \
48 coffcode.h core.c format.c \
49 libbfd.c opncls.c reloc.c \
50 section.c syms.c targets.c init.c
51
52 SRCIPROT = cache.c libbfd.c reloc.c cpu-h8300.c cpu-i960.c archures.c init.c ctor.c
53
54
55 docs: protos bfd.info bfd.dvi bfd.ps
56
57 protos: $(PROTOS) $(IPROTOS)
58 sed -f intobfd bfd-in.h > bfd.h
59 sed -f tolibbfd libbfd-in.h > libbfd.h
60 sed -f tolibcoff libcoff-in.h > libcoff.h
61
62 # Following three rules only for the benefit of Sun Make; see comment above
63 $(DOCFILES) : $(SRCDOC)
64 $(PROTOS) : $(SRCPROT)
65 $(IPROTOS) : $(SRCIPROT)
66
67 clean:
68 rm -f $(PROTOS) *.p *.ip *.h bfd.?? $(DOCFILES) bfd.dvi bfd.ps *~* *# bfd.???
69
70 bfd.info: $(DOCFILES) bfd.texinfo
71 makeinfo bfd.texinfo
72
73 bfd.dvi: $(DOCFILES) bfd.texinfo
74 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
75 texindex bfd.??
76 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
77
78 bfd.ps: bfd.dvi
79 dvips bfd -o
80
81 quickdoc: $(DOCFILES) bfd.texinfo
82 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
This page took 0.04921 seconds and 4 git commands to generate.