Makefile.am 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ## Process this file with automake to produce Makefile.in
  2. SUBDIRS = spec
  3. static_docs = vp3-format.txt color.html \
  4. draft-ietf-avt-rtp-theora-00.xml \
  5. draft-ietf-avt-rtp-theora-00.txt
  6. doc_DATA = $(static_docs) doxygen-build.stamp
  7. EXTRA_DIST = $(static_docs) Doxyfile.in
  8. if HAVE_DOXYGEN
  9. doxygen-build.stamp: Doxyfile $(top_srcdir)/include/theora/*.h
  10. doxygen
  11. touch doxygen-build.stamp
  12. else
  13. doxygen-build.stamp:
  14. echo "*** Warning: Doxygen not found; documentation will not be built."
  15. touch doxygen-build.stamp
  16. endif
  17. dist_docdir = $(distdir)/libtheora
  18. dist-hook:
  19. if test -d libtheora; then \
  20. mkdir $(dist_docdir); \
  21. echo -n "copying built documenation..."; \
  22. for dir in libtheora/*; do \
  23. b=`basename $$dir`; \
  24. if test $$b != ".svn"; then \
  25. if test -d $$dir; then \
  26. mkdir $(dist_docdir)/$$b; \
  27. for f in $$dir/*; do \
  28. cp -p $$f $(dist_docdir)/$$b; \
  29. done; \
  30. fi; \
  31. fi; \
  32. done; \
  33. echo "OK"; \
  34. fi
  35. for item in $(EXTRA_DIST); do \
  36. if test -d $$item; then \
  37. echo -n "cleaning $$item dir for distribution..."; \
  38. rm -rf `find $(distdir)/$$item -name .svn`; \
  39. echo "OK"; \
  40. fi; \
  41. done
  42. install-data-local: doxygen-build.stamp
  43. $(mkinstalldirs) $(DESTDIR)$(docdir)
  44. if test -d libtheora; then \
  45. for dir in libtheora/*; do \
  46. if test -d $$dir; then \
  47. b=`basename $$dir`; \
  48. $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
  49. for f in $$dir/*; do \
  50. $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
  51. done \
  52. fi \
  53. done \
  54. fi
  55. uninstall-local:
  56. rm -rf $(DESTDIR)$(docdir)
  57. clean-local:
  58. if test -d libtheora; then rm -rf libtheora; fi
  59. if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi