Makefile.am 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # generated documentation
  2. HTMLDOCS = bind10-guide.html bind10-messages.html
  3. DOCS = bind10-guide.txt
  4. dist_doc_DATA = $(DOCS)
  5. dist_html_DATA = $(HTMLDOCS) bind10-guide.css
  6. EXTRA_DIST = bind10-guide.xml
  7. DISTCLEANFILES = $(HTMLDOCS) $(DOCS) bind10-messages.xml
  8. # This is not a "man" manual, but reuse this for now for docbook.
  9. if GENERATE_DOCS
  10. bind10-guide.html: bind10-guide.xml
  11. @XSLTPROC@ --novalid --xinclude --nonet \
  12. --path $(top_builddir)/doc \
  13. -o $@ \
  14. --stringparam section.autolabel 1 \
  15. --stringparam section.label.includes.component.label 1 \
  16. --stringparam html.stylesheet $(srcdir)/bind10-guide.css \
  17. http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
  18. $(srcdir)/bind10-guide.xml
  19. HTML2TXT = elinks -dump -no-numbering -no-references
  20. bind10-guide.txt: bind10-guide.html
  21. $(HTML2TXT) bind10-guide.html > $@
  22. bind10-messages.html: bind10-messages.xml
  23. @XSLTPROC@ --novalid --xinclude --nonet \
  24. --path $(top_builddir)/doc \
  25. -o $@ \
  26. --stringparam html.stylesheet $(srcdir)/bind10-guide.css \
  27. http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
  28. bind10-messages.xml
  29. bind10-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