]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/doc/Makefile.in
Initial revision
[thirdparty/binutils-gdb.git] / bfd / doc / Makefile.in
CommitLineData
40c0f22d
RP
1.SUFFIXES: .texi .o .c .h .p .ip
2VPATH=..
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
19srcdir = ..
20
21TEXIDIR=${srcdir}/../texinfo/fsf
22
23DOCFILES = 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
30PROTOS = 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
36IPROTOS = 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:
41SRCDOC = 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
47SRCPROT = 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
52SRCIPROT = cache.c libbfd.c reloc.c cpu-h8300.c cpu-i960.c archures.c init.c ctor.c
53
54all: bfd.info
55
56docs: protos bfd.info bfd.dvi bfd.ps
57
58protos: $(PROTOS) $(IPROTOS)
59 sed -f intobfd bfd-in.h > bfd.h
60 sed -f tolibbfd libbfd-in.h > libbfd.h
61 sed -f tolibcoff libcoff-in.h > libcoff.h
62
63# Following three rules only for the benefit of Sun Make; see comment above
64$(DOCFILES) : $(SRCDOC)
65$(PROTOS) : $(SRCPROT)
66$(IPROTOS) : $(SRCIPROT)
67
68clean:
69 rm -f $(PROTOS) *.p *.ip *.h bfd.?? $(DOCFILES) bfd.dvi bfd.ps *~* *# bfd.???
70
71bfd.info: $(DOCFILES) bfd.texinfo
72 makeinfo bfd.texinfo
73
74bfd.dvi: $(DOCFILES) bfd.texinfo
75 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
76 texindex bfd.??
77 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
78
79bfd.ps: bfd.dvi
80 dvips bfd -o
81
82quickdoc: $(DOCFILES) bfd.texinfo
83 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo