Makefile.am 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. if CREATE_API_DOCS
  2. noinst_DATA = html
  3. endif
  4. sourcepath = $(top_builddir):$(top_srcdir):$(top_srcdir)/vm/reference:$(top_srcdir)/external/w3c_dom:$(top_srcdir)/external/sax:$(top_srcdir)/external/jsr166
  5. classpathbox = "<span class='logo'><a href='http://www.gnu.org/software/classpath' target='_top'>GNU Classpath</a> ($(VERSION))"
  6. if CREATE_API_DOCS
  7. install-data-local:
  8. $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/api
  9. @list='$(htmllist)'; for p in $$list; do \
  10. f="`echo $$p | sed -e 's|^.*/||'`"; \
  11. if test -f "$$p"; then \
  12. echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/api/$$f"; \
  13. $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/api/$$f; \
  14. elif test -d "$$p"; then \
  15. $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/api/$$f; \
  16. fi; \
  17. done
  18. uninstall-local:
  19. @list='$(htmllist)'; for p in $$list; do \
  20. f="`echo $$p | sed -e 's|^.*/||'`"; \
  21. if test -f "$$p"; then \
  22. echo " rm -f $(DESTDIR)$(pkgdatadir)/api/$$f"; \
  23. rm -f $(DESTDIR)$(pkgdatadir)/api/$$f; \
  24. fi; \
  25. done
  26. endif
  27. html: create_html
  28. clean-local:
  29. -rm -rf html create_html gjdoc_rawcomment.cache
  30. create_html:
  31. -$(MKDIR) html > /dev/null 2>&1
  32. if CREATE_API_DOCS
  33. $(GJDOC) \
  34. -use \
  35. -sourcepath "$(sourcepath)" \
  36. -encoding UTF-8 \
  37. -breakiterator \
  38. -licensetext \
  39. -linksource \
  40. -splitindex \
  41. -validhtml \
  42. -d html \
  43. -doctitle "GNU Classpath $(VERSION)" \
  44. -windowtitle "GNU Classpath $(VERSION) Documentation" \
  45. -header $(classpathbox) -footer $(classpathbox) \
  46. -subpackages java:javax:org
  47. touch create_html
  48. endif