X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=doc%2FMakefile.am;h=2d56e4667dc528e4247e9dbe24d4e34d57ca5dab;hp=04a0120de8f508e81df67fb0e21d5549c634241d;hb=d21168975926d3db27d9acd22eb029cd0d17d821;hpb=3110991d8a797c0e91037e9e615090ec57e22359 diff --git a/doc/Makefile.am b/doc/Makefile.am index 04a0120..2d56e46 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,12 +1,6 @@ -## $Id: Makefile.am,v 1.8 2005-09-07 09:28:46 adam Exp $ -docdir=$(datadir)/doc/@PACKAGE@ +## $Id: Makefile.am,v 1.18 2007-07-10 09:42:09 adam Exp $ +SUBDIRS = common -SUPPORTFILES = \ - yazhtml.dsl.in \ - yazphp.dsl.in \ - yazprint.dsl.in \ - tkl.xsl.in \ - xml.dcl XMLFILES = \ introduction.xml \ installation.xml \ @@ -15,72 +9,51 @@ XMLFILES = \ yaz-proxy-ref.xml \ yaz-proxy-man.xml \ license.xml \ - yazproxy.xml.in + yazproxy.xml -TOP=yazproxy.xml -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 \ - yazproxy.html +TOP = $(srcdir)/yazproxy.xml -doc_DATA = $(HTMLFILES) yazproxy.pdf id.png yaz.css +MANFILES = yazproxy.8 + +HTMLFILES = index.html + +doc_DATA = $(HTMLFILES) man_MANS = $(MANFILES) -EXTRA_DIST = $(SUPPORTFILES) $(XMLFILES) $(doc_DATA) $(man_MANS) +EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) entities.ent local.ent $(HTMLFILES): $(XMLFILES) - jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl $(TOP) + rm -f *.html + $(HTML_COMPILE) $(TOP) yazproxy.8: yaz-proxy-man.xml yaz-proxy-ref.xml - docbook2man $(srcdir)/yaz-proxy-man.xml + $(MAN_COMPILE) $(srcdir)/yaz-proxy-man.xml -yazproxy.php: $(XMLFILES) - jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl $(TOP) +index.tkl: $(XMLFILES) + $(TKL_COMPILE) $(TOP) yazproxy.pdf: $(XMLFILES) - if test ! -f id.png ; then ln -s $(srcdir)/id.png .; fi - jade -E14 -D $(srcdir) -d yazprint.dsl -t tex $(srcdir)/xml.dcl $(TOP) + 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.xsl - xsltproc tkl.xsl $(TOP) - 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 "$$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 \ + $(docDATA_INSTALL) $$p $(DESTDIR)$(docdir); \ done +uninstall-hook: + rm -r $(DESTDIR)$(docdir)