mirror of
https://github.com/AdaCore/PolyORB.git
synced 2026-02-12 13:01:15 -08:00
301 lines
8.1 KiB
Makefile
301 lines
8.1 KiB
Makefile
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/setup/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
|
|
|
|
# Note: the target below can be invoked locally from the doc build dir,
|
|
# in which case it will install the locally built documentation, or from
|
|
# the top-level Makefile with doc_build_dir pointing to the doc source
|
|
# directory, to install pre-built documentation.
|
|
|
|
install-data-local:
|
|
$(INSTALL) -d $(datadir)/doc/polyorb
|
|
$(INSTALL) -d $(datadir)/doc/polyorb/info
|
|
$(INSTALL) -d $(datadir)/doc/polyorb/ps
|
|
$(INSTALL) -d $(datadir)/doc/polyorb/pdf
|
|
$(INSTALL) -d $(datadir)/doc/polyorb/txt
|
|
$(INSTALL) -d $(datadir)/doc/polyorb/html
|
|
$(INSTALL) -d $(datadir)/doc/polyorb/html/polyorb_ug
|
|
|
|
for fmt in info ps pdf txt; \
|
|
do \
|
|
$(INSTALL_DATA) $(doc_build_dir)polyorb_ug.$$fmt $(datadir)/doc/polyorb/$$fmt/; \
|
|
done
|
|
for f in polyorb_ug.html/*.html; \
|
|
do \
|
|
$(INSTALL_DATA) $(doc_build_dir)$$f $(datadir)/doc/polyorb/html/polyorb_ug; \
|
|
done
|
|
$(INSTALL) -d $(datadir)/gps/plug-ins/
|
|
$(INSTALL_DATA) $(srcdir)/polyorb_gps.xml $(datadir)/gps/plug-ins/
|
|
|
|
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}"
|