Makefile.am 1.5 KB

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