Makefile.am 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # generated documentation
  2. HTMLDOCS = kea-guide.html kea-messages.html
  3. DOCS = kea-guide.txt
  4. dist_doc_DATA = $(DOCS)
  5. dist_html_DATA = $(HTMLDOCS) kea-guide.css
  6. DOCBOOK = kea-guide.xml logging.xml config.xml install.xml
  7. EXTRA_DIST = $(DOCBOOK)
  8. DISTCLEANFILES = $(HTMLDOCS) $(DOCS) kea-messages.xml
  9. # This is not a "man" manual, but reuse this for now for docbook.
  10. if GENERATE_DOCS
  11. kea-guide.html: $(DOCBOOK)
  12. @XSLTPROC@ --novalid --xinclude --nonet \
  13. --path $(top_builddir)/doc \
  14. -o $@ \
  15. --stringparam section.autolabel 1 \
  16. --stringparam section.label.includes.component.label 1 \
  17. --stringparam html.stylesheet kea-guide.css \
  18. http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
  19. $(srcdir)/kea-guide.xml
  20. kea-guide.txt: kea-guide.html
  21. @ELINKS@ -dump -no-numbering -no-references kea-guide.html > $@
  22. kea-messages.html: kea-messages.xml
  23. @XSLTPROC@ --novalid --xinclude --nonet \
  24. --path $(top_builddir)/doc \
  25. -o $@ \
  26. --stringparam html.stylesheet kea-guide.css \
  27. http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
  28. kea-messages.xml
  29. kea-messages.xml:
  30. $(PYTHON) $(top_srcdir)/tools/system_messages.py -o $@ $(top_srcdir)
  31. else
  32. $(HTMLDOCS) $(DOCS):
  33. @echo Doc generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
  34. @echo Doc generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
  35. endif