Removed '-' prefix from Makefile invocation of makeinfo. Not needed
[deliverable/binutils-gdb.git] / bfd / doc / Makefile.in
1 srcdir = .
2
3 ddestdir = /usr/local
4 idestdir = $(ddestdir)
5
6 SHELL = /bin/sh
7
8 MAKEINFO = makeinfo
9
10 .SUFFIXES: .texi .o .c .h .p .ip
11 VPATH=..
12 .c.texi:
13 ./scanit $< $@
14
15 .h.texi:
16 ./scanit $< $@
17
18 .c.p:
19 ./scanph $< $@
20
21 .h.p:
22 ./scanph $< $@
23
24 .c.ip:
25 ./scanph -i $< $@
26
27 # main GDB source directory
28
29 DOCFILES = aoutx.texi archive.texi archures.texi \
30 bfd.texi cache.texi coffcode.texi \
31 core.texi format.texi libbfd.texi \
32 opncls.texi reloc.texi section.texi \
33 syms.texi targets.texi init.texi ctor.texi
34
35
36 PROTOS = archive.p archures.p bfd.p \
37 coffcode.p core.p format.p \
38 libbfd.p opncls.p reloc.p \
39 section.p syms.p targets.p \
40 format.p coffcode.p core.p machines.p init.p
41
42 IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip
43
44 # SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction
45 # between VPATH and suffix rules. If you use GNU Make, perhaps other Makes,
46 # you don't need these three:
47 SRCDOC = aoutx.h archive.c archures.c \
48 bfd.c cache.c coffcode.h \
49 core.c format.c libbfd.c \
50 opncls.c reloc.c section.c \
51 syms.c targets.c init.c
52
53 SRCPROT = archive.c archures.c bfd.c \
54 coffcode.h core.c format.c \
55 libbfd.c opncls.c reloc.c \
56 section.c syms.c targets.c init.c
57
58 SRCIPROT = cache.c libbfd.c reloc.c cpu-h8300.c cpu-i960.c archures.c init.c ctor.c
59
60 STAGESTUFF = $(PROTOS) *.p *.ip *.h bfd.?? $(DOCFILES)
61
62 all: bfd.info
63
64 install: force
65 for i in *.info* ; do \
66 echo Installing $$i... ; \
67 (cp $$i $(idestdir)/info/$$i.new \
68 && mv -f $(idestdir)/info/$$i.new $(idestdir)/info/$$i) \
69 || exit 1 ; \
70 done
71
72 docs: protos bfd.info bfd.dvi bfd.ps
73
74 protos: $(PROTOS) $(IPROTOS)
75 sed -f intobfd bfd-in.h > bfd.h
76 sed -f tolibbfd libbfd-in.h > libbfd.h
77 sed -f tolibcoff libcoff-in.h > libcoff.h
78
79 # Following three rules only for the benefit of Sun Make; see comment above
80 $(DOCFILES) : $(SRCDOC)
81 $(PROTOS) : $(SRCPROT)
82 $(IPROTOS) : $(SRCIPROT)
83
84 clean:
85 rm -f $(STAGESTUFF) bfd.dvi bfd.ps *~* *# bfd.???
86
87 bfd.info: $(DOCFILES) bfd.texinfo
88 $(MAKEINFO) -o bfd.info $(srcdir)/bfd.texinfo
89
90 bfd.dvi: $(DOCFILES) bfd.texinfo
91 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
92 texindex bfd.??
93 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
94
95 bfd.ps: bfd.dvi
96 dvips bfd -o
97
98 quickdoc: $(DOCFILES) bfd.texinfo
99 TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
100
101 stage1: force
102 - mkdir stage1
103 - mv -f $(STAGESTUFF) stage1
104
105 stage2: force
106 - mkdir stage2
107 - mv -f $(STAGESTUFF) stage2
108
109 stage3: force
110 - mkdir stage3
111 - mv -f $(STAGESTUFF) stage3
112
113 against=stage2
114
115 comparison: force
116 for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
117
118 de-stage1: force
119 - (cd stage1 ; mv -f $(STAGESTUFF) ..)
120 - rmdir stage1
121
122 de-stage2: force
123 - (cd stage2 ; mv -f $(STAGESTUFF) ..)
124 - rmdir stage2
125
126 de-stage3: force
127 - (cd stage3 ; mv -f $(STAGESTUFF) ..)
128 - rmdir stage3
129
130 force:
131
132 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
133 $(SHELL) ./config.status
134
This page took 0.031842 seconds and 4 git commands to generate.