-## $Id: Makefile.am,v 1.12 2006-06-02 08:53:23 adam Exp $
-docdir=$(datadir)/doc/@PACKAGE@
-
SUBDIRS = common
XMLFILES = \
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)
EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) entities.ent local.ent
$(HTMLFILES): $(XMLFILES)
+ rm -f *.html
$(HTML_COMPILE) $(TOP)
yazproxy.8: yaz-proxy-man.xml yaz-proxy-ref.xml
$(MAN_COMPILE) $(srcdir)/yaz-proxy-man.xml
-index.tkl: $(XMLFILES) common/tkl.xsl
+index.tkl: $(XMLFILES)
$(TKL_COMPILE) $(TOP)
-
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
+ $(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
+
+doc-clean:
+ rm -f manref.xml *.html *.[0-9] *.pdf
+
+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)