File: Makefile.am

package info (click to toggle)
polyorb 2.6.0~20090423-10
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 25,004 kB
  • ctags: 240
  • sloc: ada: 236,464; makefile: 2,281; sh: 1,373; cpp: 957; java: 500; ansic: 198; python: 191; perl: 23; exp: 6
file content (292 lines) | stat: -rw-r--r-- 7,942 bytes parent folder | download
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
info_TEXINFOS = polyorb_ug.texi polyorb_dg.texi
man_MANS = po_names.1 idlac.1 iac.1 polyorb-config.1 polyorb.7

SUFFIXES = .idl .ads .adb .sed .pdf .texi .txt .info .html

FIG2DEV=fig2dev

FIGFILES=\
  xe-arch.fig\
  full-ex.fig\
  corba-arch.fig

FIG_PDFFILES = $(FIGFILES:=.pdf)
FIG_EPSFILES = $(FIGFILES:=.eps)
FIG_PNGFILES = $(FIGFILES:=.png)
FIG_TXTFILES = $(FIGFILES:=.txt)

# Ada sources from GLADE UG
GLADE_ADAFILES=\
  check_pid.adb\
  acrrt.adb\
  acrrt.ads\
  acrrci.adb\
  acrrci.ads\
  acrmain.adb\
  rcibank.ads\
  terminal.ads\
  types.ads\
  rasbank.ads\
  racwbank.ads\
  mirrorbank.ads\
  mirrorbank.adb\
  bankclient.adb\
  term1client.adb\
  term2client.adb\
  racwbank.adb\
  newterminal.ads\
  stringarraystream.ads\
  stringarraystream.adb\
  sharedobjects.ads\
  storage.ads\
  common.ads\
  newworkers.ads\
  newnewworkers.ads\
  workercity.ads\
  factory.ads\
  newfactory.ads\
  internal.ads\
  rempkg1.ads\
  rempkg1.adb\
  rempkg2.ads\
  rempkg2.adb\
  remexcmain.adb\
  node1.ads\
  node1.adb\
  node2.ads\
  node2.adb\
  nondeterministic.adb\
  asynchronousrt.ads\
  asynchronousrci.ads\
  asynchronousmain.adb\
  genericrci.ads\
  rciinstantiation.ads\
  rciclient.adb\
  normalinstantiation.ads\
  new_integers.ads\
  new_integers.adb

$(GLADE_ADAFILES): glade-sources
	gnatchop -w $<

GLADE_TEXIFILES1= $(GLADE_ADAFILES:=.texi)
GLADE_TEXIFILES2 = $(GLADE_TEXIFILES1)
GLADE_TEXIFILES = $(GLADE_TEXIFILES1) myconfig.cfg.texi

polyorb_ug_TEXINFOS = polyorb_ug_ref.texi \
	polyorb-corba_p-corbaloc.ads.texi \
	polyorb-corba_p-server_tools.ads.texi \
	polyorb-corba_p-naming_tools.ads.texi \
	polyorb-rtcorba_p-setup.ads.texi \
	polyorb-setup-tasking-ravenscar.ads.texi \
	echo.idl.texi \
	echo-impl.ads.texi \
	echo-impl.adb.texi \
	server.adb.texi \
	client.adb.texi \
	dsa_client.adb.texi \
	dsa_server.ads.texi \
	dsa_server.adb.texi \
	dsa_echo-cfg.ads.texi \
	$(GLADE_TEXIFILES)

#
# Rules to build specific files for PolyORB User's Guide
# 

polyorb-corba_p-corbaloc.ads: $(top_srcdir)/src/corba/polyorb-corba_p-corbaloc.ads
	cp -f $< .

polyorb-corba_p-naming_tools.ads: $(top_srcdir)/idls/cos/naming/polyorb-corba_p-naming_tools.ads
	cp -f $< .

polyorb-corba_p-server_tools.ads: $(top_srcdir)/src/corba/polyorb-corba_p-server_tools.ads
	cp -f $< .

polyorb-rtcorba_p-setup.ads: $(top_srcdir)/src/corba/rtcorba/polyorb-rtcorba_p-setup.ads
	cp -f $< .

polyorb-setup-tasking-ravenscar.ads: $(top_srcdir)/src/polyorb-setup-tasking-ravenscar.ads
	cp -f $< .

echo.idl: $(top_srcdir)/examples/corba/echo/echo.idl
	cp -f $< .

echo-impl.ads: $(top_srcdir)/examples/corba/echo/echo-impl.ads
	cp -f $< .

echo-impl.adb: $(top_srcdir)/examples/corba/echo/echo-impl.adb
	cp -f $< .

client.adb: $(top_srcdir)/examples/corba/echo/client.adb
	cp -f $< .

server.adb: $(top_srcdir)/examples/corba/echo/server.adb
	cp -f $< .

dsa_client.adb: $(top_srcdir)/examples/dsa/echo/client.adb
	cp -f $< ./dsa_client.adb

dsa_server.ads: $(top_srcdir)/examples/dsa/echo/server.ads
	cp -f $< ./dsa_server.ads

dsa_server.adb: $(top_srcdir)/examples/dsa/echo/server.adb
	cp -f $< ./dsa_server.adb

dsa_echo-cfg.ads: $(top_srcdir)/examples/dsa/echo/echo.cfg
	cp -f $< ./dsa_echo-cfg.ads

polyorb_ug_ref.texi: polyorb_ug_ref.bbl
	@${SED} -e 's/~/ /g' \
	    -e 's/\\[-`'\''"c^]//g' \
	    -e 's/\\emdash */---/g' \
	    -e 's/metapost/MetaPost/g' \
	    -e 's/\\MF/Metafont/g' \
	    -e 's/\\METAFONT/METAFONT/g' \
	    -e 's/\\TUB/TUGboat/g' \
	    -e 's/\\LaTeX/La@TeX/g' \
	    -e 's/\\AMSTEX/AMS@TeX/g' \
	    -e 's/\\AmSTeX/AMS@TeX/g' \
	    -e 's/\\TeX/@TeX/g' \
	    -e 's/\\noopsort{[^}]*}//g' \
	    -e 's/[{}\]//g' \
	    -e 's/@\[/{/g' \
	    -e 's/@\]/}/g' \
	    -e 's/@TeX/@TeX{}/g' \
	$< >$@

polyorb_ug_ref.bbl: polyorb_ug_ref.aux
	-bibtex polyorb_ug_ref

polyorb_ug_ref.aux: polyorb_ug_ref.tex polyorb_ug.bib
	rm -f polyorb_ug_ref.bbl
	-tex '\nonstopmode \input $<'

#
# Generic rules to build the documentation in specific formats
#

# Cancel built-in implicit rules, we replace them later on
%.html: %.texi
%.info: %.texi
%.txt: %.texi
%.pdf: %.texi
%.dvi: %.texi

# The PolyORB User's Guide texi file does not provide Up links in @node
# commands, but we want to force generation of all documentation anyway.
%.html: ${srcdir}/%.texi ${polyorb_ug_TEXINFOS} $(FIG_PNGFILES)
	-${MAKEINFO} -o $@ --force --html --number-sections $<
	cp *.png $@

%.info: ${srcdir}/%.texi ${polyorb_ug_TEXINFOS}
	-${MAKEINFO} -o $@ --force --no-split --number-sections $<

%.txt : ${srcdir}/%.texi ${polyorb_ug_TEXINFOS}
	-${MAKEINFO} -o $@ --force --no-split --plaintext --ifinfo --number-sections $<

# Don't use -o $@ for PDF because it causes the doc build to be done in
# a temporary directory, and Kpathsea doesn't know about PDF images.
%.pdf: ${srcdir}/%.texi ${polyorb_ug_TEXINFOS} $(FIG_PDFFILES)
	-${TEXI2DVI} --pdf $<

# Setting the environment variable TEX to "tex" is needed on Windows,
# to work around a problem with Cygwin.
# Otherwise, we get an error like this:
# ---! /var/lib/texmf/web2c/etex.fmt was written by pdfetex
# (Fatal format file error; I'm stymied)
# /usr/bin/texi2dvi: texinfo.tex appears to be broken, quitting.
#See: http://www.mail-archive.com/bug-automake@gnu.org/msg00546.html
%.dvi: ${srcdir}/%.texi ${polyorb_ug_TEXINFOS} $(FIG_EPSFILES)
	TEX=tex \
	TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
	MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
	$(TEXI2DVI) $<

#
# Texi generation from .ads files
#

%.sed: %.kw
	$(top_srcdir)/support/gensedfile $< $@

%.ads.texi: %.ads ada.sed $(top_srcdir)/support/gentexifile
	AWK="${AWK}" SED="${SED}" $(top_srcdir)/support/gentexifile $< NOGROUP

%.adb.texi: %.adb ada.sed $(top_srcdir)/support/gentexifile
	AWK="${AWK}" SED="${SED}" $(top_srcdir)/support/gentexifile $< NOGROUP

%.cfg.texi: %.cfg cfg.sed $(top_srcdir)/support/gentexifile
	AWK="${AWK}" SED="${SED}" $(top_srcdir)/support/gentexifile $< NOGROUP

%.idl.texi: %.idl idl.sed $(top_srcdir)/support/gentexifile
	AWK="${AWK}" SED="${SED}" $(top_srcdir)/support/gentexifile $<

#
# Figures
#

%.fig.eps: %.fig
	$(FIG2DEV) -L eps $< $@

%.fig.pdf: %.fig
	$(FIG2DEV) -L pdf $< $@

%.fig.png: %.fig
	$(FIG2DEV) -L png $< $@

#
# Local rules
# 

all-local: MANIFEST

clean-local: maintainer-clean
	-@${RM} -f polyorb_ug.pdf polyorb_ug.txt polyorb_ug.info \
		polyorb_ug_ref.aux polyorb_ug_ref.bbl polyorb_ug_ref.blg \
		polyorb_ug_ref.dvi polyorb_ug_ref.log \
		${polyorb_ug_TEXINFOS} \
		polyorb_dg.pdf polyorb_dg.txt polyorb_dg.info \
		idl.sed ada.sed cfg.sed *.ads *.adb *.idl
	-@${RM} -fr polyorb_ug.html polyorb_dg.html polyorb_ug_toc.html

install-data-local:
	$(INSTALL) -d $(prefix)/share/doc/polyorb
	$(INSTALL) -d $(prefix)/share/doc/polyorb/info
	$(INSTALL) -d $(prefix)/share/doc/polyorb/ps
	$(INSTALL) -d $(prefix)/share/doc/polyorb/pdf
	$(INSTALL) -d $(prefix)/share/doc/polyorb/txt
	$(INSTALL) -d $(prefix)/share/doc/polyorb/html
	$(INSTALL) -d $(prefix)/share/doc/polyorb/html/polyorb_ug

	for fmt in info ps pdf txt; \
	do \
		$(INSTALL_DATA) polyorb_ug.$$fmt $(prefix)/share/doc/polyorb/$$fmt/; \
	done
	for f in polyorb_ug.html/*.html; \
	do \
		$(INSTALL_DATA) $$f $(prefix)/share/doc/polyorb/html/polyorb_ug; \
	done

MANIFEST: polyorb_ug.info polyorb_ug.html polyorb_ug.pdf polyorb_ug.ps polyorb_ug.txt \
	polyorb_dg.info polyorb_dg.html polyorb_dg.pdf polyorb_dg.txt polyorb_dg.ps
	-${RM} -f MANIFEST
	echo polyorb_ug.info >> MANIFEST
	echo polyorb_ug.ps >> MANIFEST
	echo polyorb_ug.pdf >> MANIFEST
	echo polyorb_ug.txt >> MANIFEST
	echo polyorb_ug.html/* | tr ' ' '\012' >> MANIFEST

release: all
	-${RM} -rf polyorb-doc
	mkdir -p polyorb-doc/polyorb_ug.html
	for f in `cat MANIFEST`; do \
		ln $$f polyorb-doc/$$f; \
	done
	ln MANIFEST polyorb-doc/MANIFEST
	tar cvzf polyorb-doc.tar.gz polyorb-doc
	-${RM} -rf polyorb-doc

debug:
	@echo "polyorb_ug_TEXINFOS=${polyorb_ug_TEXINFOS}"
	@echo "FIG_PDFFILES=${FIG_PDFFILES}"