Makefile.am 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 bind10-guide.css \
  17. http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
  18. $(srcdir)/bind10-guide.xml
  19. bind10-guide.txt: bind10-guide.html
  20. @ELINKS@ -dump -no-numbering -no-references 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 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. else
  31. $(HTMLDOCS) $(DOCS):
  32. @echo Doc generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
  33. @echo Doc generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
  34. endif