connect-max per IP MP-632
[metaproxy-moved-to-github.git] / doc / Makefile.am
index 8d7f4d2..add015e 100644 (file)
@@ -1,52 +1,72 @@
 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 \
+       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
@@ -54,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
@@ -86,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
-       unset DISPLAY; inkscape --export-png=$@ --export-area=0:0:1050:500 $?
+       unset DISPLAY; ${INKSCAPE} --export-png=$@ --export-area=0:0:1050:500 $?
 
 multi.eps: multi.svg
-       unset DISPLAY; inkscape --export-eps=$@ --export-bbox-page $?
+       unset DISPLAY; ${INKSCAPE} --export-eps=$@ --export-area-page $?
 
 .eps.pdf:
        epstopdf -hires $?
@@ -111,10 +135,13 @@ 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: