X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile.am;h=add015e23a4e76b5f7c17a48a2a683b36b271eb8;hb=77f7f089896020b5bc2bb513cd64763b24d3d707;hp=ad8d318b463a9daec4eecf986b4832b6bc8c1f0c;hpb=979950be5db6edd4470b4fa5870613e61b658a99;p=metaproxy-moved-to-github.git diff --git a/doc/Makefile.am b/doc/Makefile.am index ad8d318..add015e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,53 +1,72 @@ -## $Id: Makefile.am,v 1.39 2007-06-17 07:06:43 adam Exp $ SUBDIRS = common -SUFFIXES=.3mp .1 .pdf .tkl .esp .xml +INKSCAPE=inkscape -XMLFILES = book.xml manref.xml copyright.xml +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\ + 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 + 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 query_rewrite.3mp \ - record_transform.3mp\ + multi.3mp \ + present_chunk.3mp \ + query_rewrite.3mp \ + record_transform.3mp \ + sd_remove.3mp \ session_shared.3mp \ - sru_z3950.xml\ + sort.3mp \ + sru_z3950.3mp \ template.3mp \ virt_db.3mp \ z3950_client.3mp \ - zeerex_explain.3mp - + zeerex_explain.3mp \ + zoom.3mp HTMLFILES = index.html -# testing if this does the job of collecting up the unnamed '*.html' files +# testing if this does the job of collecting up the unnamed '*.html' files #UNLISTEDHTML = $(wildcard *.html) PNGFILES = multi.png @@ -55,7 +74,9 @@ PNGFILES = multi.png doc_DATA = $(HTMLFILES) $(PNGFILES) man_MANS = $(MANFILES) -EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg +EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg + +$(MANFILES): local.ent $(HTMLFILES): $(XMLFILES) $(PNGFILES) rm -f *.html @@ -74,7 +95,7 @@ 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 - dblatex $(MAINXML) + $(PDF_COMPILE) $(MAINXML) mv book.pdf metaproxy.pdf metaproxyj.pdf: $(XMLFILES) multi.pdf @@ -87,17 +108,19 @@ metaproxyj.pdf: $(XMLFILES) multi.pdf pdfjadetex book.tex mv book.pdf metaproxyj.pdf -manref.xml: $(XMLMAN) $(srcdir)/common/stripref.xsl +manref.xml: $(XMLMAN) $(srcdir)/common/stripref.xsl \ + $(srcdir)/copyright.xml local.ent rm -f manref.xml for i in $(XMLMAN); do \ - xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \ + xsltproc --xinclude $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \ done + multi.png: multi.svg - inkscape --export-png=$@ --export-area=0:0:1050:500 $? + 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 $? .eps.pdf: epstopdf -hires $? @@ -112,12 +135,15 @@ dist-hook: 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 \ - $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \ + $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \ done uninstall-hook: - rm -r $(DESTDIR)/$(docdir) + rm -r $(DESTDIR)$(docdir)