X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=doc%2FMakefile.am;h=eb92b816a4f391f0d2a03cac3b1b609925f4ce1b;hp=3b677a3ea07d82e82bb843fd1cf56c74e5c46c3e;hb=0aa9ae6bd30fae8a1f8f24245b05496b39a36c5d;hpb=98fdc3971ad4e028f545f9bce0e22031e08a8406 diff --git a/doc/Makefile.am b/doc/Makefile.am index 3b677a3..eb92b81 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,6 +1,3 @@ -## $Id: Makefile.am,v 1.11 2006-05-26 19:59:58 adam Exp $ -docdir=$(datadir)/doc/@PACKAGE@ - SUBDIRS = common XMLFILES = \ @@ -11,71 +8,47 @@ XMLFILES = \ yaz-proxy-ref.xml \ yaz-proxy-man.xml \ license.xml \ - yazproxy.xml.in + yazproxy.xml -TOP=yazproxy.xml +TOP = $(srcdir)/yazproxy.xml -MANFILES=yazproxy.8 +MANFILES = yazproxy.8 -HTMLFILES = \ - installation.html \ - introduction.html \ - license.html \ - other-optimizations.html \ - otherinfo-encoding.html \ - proxy-config-file.html \ - proxy-keepalive.html \ - proxy-reference.html \ - proxy-target.html \ - proxy-usage.html \ - query-cache.html \ - query-validation.html \ - record-cache.html \ - record-validation.html \ - support.html \ - using.html \ - windows.html \ - yazproxy-man.html \ - yazproxy-schema.html \ - index.html +HTMLFILES = index.html doc_DATA = $(HTMLFILES) man_MANS = $(MANFILES) -EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) entities.ent +EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) entities.ent local.ent $(HTMLFILES): $(XMLFILES) - xsltproc common/html.xsl $(TOP) + rm -f *.html + $(HTML_COMPILE) $(TOP) yazproxy.8: yaz-proxy-man.xml yaz-proxy-ref.xml - xsltproc common/man.xsl $(srcdir)/yaz-proxy-man.xml + $(MAN_COMPILE) $(srcdir)/yaz-proxy-man.xml -yazproxy.pdf: $(XMLFILES) - if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common; fi - jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP) - pdfjadetex yazproxy.tex >pdfjadetex.log 2>&1 - pdfjadetex yazproxy.tex >pdfjadetex.log 2>&1 - pdfjadetex yazproxy.tex >pdfjadetex.log 2>&1 +index.tkl: $(XMLFILES) + $(TKL_COMPILE) $(TOP) -index.tkl: $(XMLFILES) common/tkl.xsl - xsltproc common/tkl.xsl $(TOP) +yazproxy.pdf: $(XMLFILES) + $(PDF_COMPILE) $(TOP) clean-data-hook: rm -f [0-9]* *.bak dist-hook: - for f in *.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 "$$h 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 + +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)