X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile.am;h=add015e23a4e76b5f7c17a48a2a683b36b271eb8;hb=586d78659d671683f33ec55f4a7d32b28e345ccd;hp=f792ae21e968bfc1da9f3833e953bde29ea14d3f;hpb=26434d415f160f31e6654a278e2053e7344f3d63;p=metaproxy-moved-to-github.git diff --git a/doc/Makefile.am b/doc/Makefile.am index f792ae2..add015e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,111 +1,149 @@ -## $Id: Makefile.am,v 1.21 2006-05-26 20:51:20 adam Exp $ -docdir=$(datadir)/doc/@PACKAGE@ - SUBDIRS = common -SUFFIXES=.3mp .1 - -XMLFILES = main.xml.in book.xml manref.xml progref.xml copyright.xml \ - metaproxy.xml - -MAINXML = main.xml - -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 - -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 \ - licence.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) metaproxy.pdf $(PNGFILES) +INKSCAPE=inkscape + +SUFFIXES=.3mp .1 .pdf .tkl .esp .xml + +XMLFILES = book.xml manref.xml copyright.xml gpl-2.0.xml local.ent + +MAINXML = $(srcdir)/book.xml + +XMLMAN = metaproxy.xml \ + metaproxy-config.xml \ + auth_simple.xml \ + backend_test.xml \ + bounce.xml \ + cgi.xml \ + cql_rpn.xml \ + frontend_net.xml \ + http_client.xml \ + http_file.xml \ + http_rewrite.xml \ + limit.xml \ + load_balance.xml \ + log.xml \ + multi.xml \ + present_chunk.xml \ + query_rewrite.xml \ + record_transform.xml\ + sd_remove.xml \ + session_shared.xml \ + sort.xml \ + sru_z3950.xml\ + template.xml \ + virt_db.xml \ + z3950_client.xml \ + zeerex_explain.xml \ + zoom.xml + +MANFILES = metaproxy.1 \ + metaproxy-config.1 \ + auth_simple.3mp \ + backend_test.3mp \ + bounce.3mp \ + cgi.3mp \ + cql_rpn.3mp \ + frontend_net.3mp \ + http_client.3mp \ + http_file.3mp \ + http_rewrite.3mp \ + limit.3mp \ + load_balance.3mp \ + log.3mp \ + multi.3mp \ + present_chunk.3mp \ + query_rewrite.3mp \ + record_transform.3mp \ + sd_remove.3mp \ + session_shared.3mp \ + sort.3mp \ + sru_z3950.3mp \ + template.3mp \ + virt_db.3mp \ + z3950_client.3mp \ + zeerex_explain.3mp \ + zoom.3mp + +HTMLFILES = index.html + +# testing if this does the job of collecting up the unnamed '*.html' files +#UNLISTEDHTML = $(wildcard *.html) + +PNGFILES = multi.png + +doc_DATA = $(HTMLFILES) $(PNGFILES) man_MANS = $(MANFILES) EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg -$(HTMLFILES): $(XMLFILES) multi.png - xsltproc common/html.xsl $(MAINXML) +$(MANFILES): local.ent + +$(HTMLFILES): $(XMLFILES) $(PNGFILES) + rm -f *.html + $(HTML_COMPILE) $(MAINXML) .xml.3mp: - xsltproc common/man.xsl $< + $(MAN_COMPILE) $< .xml.1: - xsltproc common/man.xsl $< + $(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 common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML) - rm -f metaproxy.tex - mv main.tex metaproxy.tex - pdfjadetex metaproxy.tex >/dev/null - pdfjadetex metaproxy.tex >/dev/null - pdfjadetex metaproxy.tex >/dev/null - -index.tkl: $(XMLFILES) common/tkl.xsl - xsltproc common/tkl.xsl $(MAINXML) + $(PDF_COMPILE) $(MAINXML) + mv book.pdf metaproxy.pdf -manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl +metaproxyj.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 common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML) + pdfjadetex book.tex + pdfjadetex book.tex + pdfjadetex book.tex + mv book.pdf metaproxyj.pdf + +manref.xml: $(XMLMAN) $(srcdir)/common/stripref.xsl \ + $(srcdir)/copyright.xml local.ent rm -f manref.xml for i in $(XMLMAN); do \ - xsltproc $(srcdir)/common/ref2dbinc.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \ + xsltproc --xinclude $(srcdir)/common/stripref.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 $? + unset DISPLAY; ${INKSCAPE} --export-png=$@ --export-area=0:0:1050:500 $? multi.eps: multi.svg - inkscape --export-eps=$@ --export-bbox-page $? + unset DISPLAY; ${INKSCAPE} --export-eps=$@ --export-area-page $? -%.pdf: %.eps +.eps.pdf: epstopdf -hires $? + clean-data-hook: rm -f [0-9]* *.bak dist-hook: - for f in $(srcdir)/*.html; do \ - found=0; \ - b=`basename $$f`; \ - for h in $(HTMLFILES); do \ - if test "$$h" = "$$b"; then \ - found=1; \ - fi \ - done; \ - if test "$$found" = "0"; then \ - echo "$$f not found in HTMLFILES"; \ - exit 1; \ - fi \ + if test -f index.html; then d=.; else d="$(srcdir)"; fi; \ + for p in $$d/*.html; do \ + cp $$p $(distdir); \ + done + +doc-clean: + rm -f manref.xml *.html *.[0-9] *.?mp *.pdf *.tkl + +install-data-hook: + if test -f index.html; then d=.; else d="$(srcdir)"; fi; \ + for p in $$d/*.html; do \ + $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \ done + +uninstall-hook: + rm -r $(DESTDIR)$(docdir) +