Makefile.am 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # generated documentation
  2. DOCS = bind10-messages.html bind10-guide.html bind10-guide.txt
  3. docdir = $(pkgdatadir)/doc/$(PACKAGE)
  4. doc_DATA = $(DOCS) bind10-guide.css
  5. # TODO: okay to include the generated bind10-messages.xml in dist tarfile too?
  6. EXTRA_DIST = bind10-guide.xml bind10-messages.xml $(doc_DATA)
  7. CLEANFILES = $(DOCS) bind10-messages.xml
  8. # This is not a "man" manual, but reuse this for now for docbook.
  9. if ENABLE_MAN
  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. endif