Makefile.am 1.7 KB

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