X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=doc%2FMakefile.am;h=71b65cb0181c27b47b0eac5015b4bc5ebb68bef0;hb=7f5ca4e0e34d88dcdd307865181195e1fa89e7b0;hp=f3c10579f781cbda2b87ff739323c03752421b31;hpb=4e876b7359785f69806459e19fcaa8aea37fc15d;p=metaproxy-moved-to-github.git diff --git a/doc/Makefile.am b/doc/Makefile.am index f3c1057..71b65cb 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,44 +1,101 @@ -## $Id: Makefile.am,v 1.2 2006-03-16 12:03:39 adam Exp $ +## $Id: Makefile.am,v 1.25 2006-06-28 21:55:40 adam Exp $ docdir=$(datadir)/doc/@PACKAGE@ -SUPPORTFILES = html.dsl print.dsl tkl.xsl xml.dcl +SUBDIRS = common -XMLFILES = metaproxy.xml.in book.xml -MAINXML = metaproxy.xml +SUFFIXES=.3mp .1 -HTMLFILES = metaproxy.html +XMLFILES = book.xml manref.xml progref.xml copyright.xml metaproxy.xml -PNGFILES= -EPSFILES= +MAINXML = $(srcdir)/book.xml -REFFILES= +XMLMAN = auth_simple.xml backend_test.xml frontend_net.xml \ + http_file.xml log.xml multi.xml query_rewrite.xml \ + session_shared.xml template.xml virt_db.xml z3950_client.xml +MANFILES = auth_simple.3mp backend_test.3mp frontend_net.3mp \ + http_file.3mp log.3mp multi.3mp query_rewrite.3mp \ + session_shared.3mp template.3mp virt_db.3mp z3950_client.3mp \ + metaproxy.1 -doc_DATA = $(HTMLFILES) metaproxy.pdf $(PNGFILES) +HTMLFILES = architecture.html \ + classes.html \ + configuration.html \ + example.configuration.html \ + extensions.html \ + filterref.html \ + filters.html \ + future.directions.html \ + index.html \ + individual.classes.html \ + installation.html \ + installation.debian.html \ + installation.windows.html \ + introduction.html \ + license.html \ + multidb.html \ + multidb.multi.html \ + multidb.picture.html \ + multidb.virt_db.html \ + multidb.what.html \ + other.source.files.html \ + overview.filter.types.html \ + overview.xml.structure.html \ + refguide.html + +PNGFILES = multi.png + +doc_DATA = $(HTMLFILES) $(PNGFILES) man_MANS = $(MANFILES) -EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \ - $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) +EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg + +$(HTMLFILES): $(XMLFILES) multi.png + $(HTML_COMPILE) $(MAINXML) -$(HTMLFILES): $(XMLFILES) - jade -E14 -D $(srcdir) -d html.dsl -t sgml $(srcdir)/xml.dcl $(MAINXML) +.xml.3mp: + $(MAN_COMPILE) $< -metaproxy.pdf: $(XMLFILES) - for i in $(PNGFILES); do \ - if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \ +.xml.1: + $(MAN_COMPILE) $< + +index.tkl: $(XMLFILES) + $(TKL_COMPILE) $(MAINXML) + +metaproxy.pdf: $(XMLFILES) multi.pdf + for i in $(PNGFILES) common/id.png multi.pdf; do \ + if test ! -f $$i; then cp $(srcdir)/$$i $$i; fi; \ done - jade -E14 -D $(srcdir) -d print.dsl -t tex $(srcdir)/xml.dcl $(MAINXML) + jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML) + rm -f metaproxy.tex + mv book.tex metaproxy.tex pdfjadetex metaproxy.tex >/dev/null pdfjadetex metaproxy.tex >/dev/null pdfjadetex metaproxy.tex >/dev/null -index.tkl: $(XMLFILES) tkl.xsl - xsltproc tkl.xsl $(MAINXML) +manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl + rm -f manref.xml + for i in $(XMLMAN); do \ + xsltproc $(srcdir)/common/ref2dbinc.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \ + done + +progref.xml: metaproxy.xml + rm -f $@ + xsltproc $(srcdir)/common/ref2dbinc.xsl $? | sed 1d >> $@ + +multi.png: multi.svg + inkscape --export-png=$@ --export-width=800 --export-area-drawing $? + +multi.eps: multi.svg + inkscape --export-eps=$@ --export-bbox-page $? + +%.pdf: %.eps + epstopdf -hires $? clean-data-hook: rm -f [0-9]* *.bak dist-hook: - for f in $(srcdir)/*.html; do \ + if test -f index.html; then for f in *.html; do \ found=0; \ b=`basename $$f`; \ for h in $(HTMLFILES); do \ @@ -50,4 +107,4 @@ dist-hook: echo "$$f not found in HTMLFILES"; \ exit 1; \ fi \ - done + done; fi