aboutsummaryrefslogtreecommitdiff
path: root/bfd/doc/Makefile.in
blob: e6740f354a15ffd6bb91be6ec1f3637a2a882e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
srcdir = .

ddestdir = /usr/local
idestdir = $(ddestdir)

SHELL = /bin/sh

MAKEINFO = makeinfo

.SUFFIXES: .texi .o .c .h .p .ip
VPATH=..
.c.texi:
	./scanit $< $@

.h.texi:
	./scanit $< $@

.c.p:
	./scanph $< $@

.h.p:
	./scanph $< $@

.c.ip:
	./scanph -i $< $@

# main GDB source directory

DOCFILES = aoutx.texi  archive.texi archures.texi \
	bfd.texi  cache.texi coffcode.texi \
	core.texi  format.texi  libbfd.texi  \
	opncls.texi  reloc.texi  section.texi  \
	syms.texi  targets.texi init.texi ctor.texi
	

PROTOS = archive.p archures.p bfd.p \
	coffcode.p core.p format.p \
	libbfd.p opncls.p reloc.p \
	section.p syms.p targets.p  \
	format.p coffcode.p core.p machines.p init.p

IPROTOS = cache.ip libbfd.ip reloc.ip init.ip archures.ip ctor.ip 

# SRCDOC, SRCPROT, SRCIPROT only used to sidestep Sun Make bug in interaction 
# between VPATH and suffix rules.  If you use GNU Make, perhaps other Makes,
# you don't need these three:
SRCDOC = aoutx.h  archive.c archures.c \
	bfd.c  cache.c coffcode.h \
	core.c  format.c  libbfd.c  \
	opncls.c  reloc.c  section.c  \
	syms.c  targets.c init.c

SRCPROT = archive.c archures.c bfd.c \
	coffcode.h core.c format.c \
	libbfd.c opncls.c reloc.c \
	section.c syms.c targets.c init.c

SRCIPROT = cache.c libbfd.c reloc.c cpu-h8300.c  cpu-i960.c archures.c init.c ctor.c

STAGESTUFF = $(PROTOS) *.p *.ip *.h bfd.?? $(DOCFILES)

all: bfd.info

install: force
	for i in *.info* ; do \
		echo Installing $$i... ; \
		(cp $$i $(idestdir)/info/$$i.new \
			&& mv -f $(idestdir)/info/$$i.new $(idestdir)/info/$$i) \
		|| exit 1 ; \
	done

docs: protos bfd.info bfd.dvi bfd.ps

protos: $(PROTOS) $(IPROTOS)
	sed -f intobfd bfd-in.h  > bfd.h
	sed -f tolibbfd libbfd-in.h  > libbfd.h
	sed -f tolibcoff libcoff-in.h  > libcoff.h

# Following three rules only for the benefit of Sun Make; see comment above
$(DOCFILES) : $(SRCDOC)
$(PROTOS) : $(SRCPROT)
$(IPROTOS) : $(SRCIPROT)

clean:
	rm -f $(STAGESTUFF) bfd.dvi bfd.ps *~* *# bfd.??? 

bfd.info: $(DOCFILES) bfd.texinfo
	- $(MAKEINFO) -o bfd.info $(srcdir)/bfd.texinfo

bfd.dvi: $(DOCFILES) bfd.texinfo
	TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo
	texindex bfd.??
	TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo

bfd.ps: bfd.dvi
	dvips bfd -o
	
quickdoc: $(DOCFILES) bfd.texinfo
	TEXINPUTS=${TEXIDIR}:.:$$TEXINPUTS tex bfd.texinfo

stage1: force
	- mkdir stage1
	- mv -f $(STAGESTUFF) stage1

stage2: force
	- mkdir stage2
	- mv -f $(STAGESTUFF) stage2

stage3: force
	- mkdir stage3
	- mv -f $(STAGESTUFF) stage3

against=stage2

comparison: force
	for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done

de-stage1: force
	- (cd stage1 ; mv -f $(STAGESTUFF) ..)
	- rmdir stage1

de-stage2: force
	- (cd stage2 ; mv -f $(STAGESTUFF) ..)
	- rmdir stage2

de-stage3: force
	- (cd stage3 ; mv -f $(STAGESTUFF) ..)
	- rmdir stage3

force:

Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
	$(SHELL) ./config.status