Makefile.am 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This is not a "man" manual, but reuse this for now for docbook.
  2. if ENABLE_MAN
  3. # generated documentation
  4. DOCS = bind10-messages.html bind10-guide.html bind10-guide.txt
  5. doc_DATA = $(DOCS) bind10-guide.css
  6. # TODO: okay to include the generated bind10-messages.xml in dist tarfile too?
  7. EXTRA_DIST = bind10-guide.xml bind10-messages.xml $(doc_DATA)
  8. CLEANFILES = $(DOCS) bind10-messages.xml
  9. bind10-guide.html: bind10-guide.xml
  10. xsltproc --novalid --xinclude --nonet \
  11. --path $(top_builddir)/doc \
  12. -o $@ \
  13. --stringparam section.autolabel 1 \
  14. --stringparam section.label.includes.component.label 1 \
  15. --stringparam html.stylesheet $(srcdir)/bind10-guide.css \
  16. http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
  17. $(srcdir)/bind10-guide.xml
  18. HTML2TXT = elinks -dump -no-numbering -no-references
  19. bind10-guide.txt: bind10-guide.html
  20. $(HTML2TXT) bind10-guide.html > $@
  21. bind10-messages.html: bind10-messages.xml
  22. xsltproc --novalid --xinclude --nonet \
  23. --path $(top_builddir)/doc \
  24. -o $@ \
  25. --stringparam html.stylesheet $(srcdir)/bind10-guide.css \
  26. http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
  27. bind10-messages.xml
  28. bind10-messages.xml:
  29. $(PYTHON) $(top_srcdir)/tools/system_messages.py -o $@ $(top_srcdir)
  30. endif