Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. ## Process this with automake to create Makefile.in
  2. SUBDIRS = libvorbis vorbisfile vorbisenc
  3. docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
  4. ### all of the static docs, commited to SVN and included as is
  5. static_docs = \
  6. rfc5215.xml \
  7. rfc5215.txt \
  8. eightphase.png \
  9. fish_xiph_org.png \
  10. floor1_inverse_dB_table.html \
  11. floorval.png \
  12. fourphase.png \
  13. framing.html \
  14. helper.html \
  15. index.html \
  16. oggstream.html \
  17. programming.html \
  18. squarepolar.png \
  19. stereo.html \
  20. stream.png \
  21. v-comment.html \
  22. vorbis-clip.txt \
  23. vorbis-errors.txt \
  24. vorbis-fidelity.html
  25. # bits needed by the spec
  26. SPEC_PNG = \
  27. components.png \
  28. fish_xiph_org.png \
  29. floor1-1.png \
  30. floor1-2.png \
  31. floor1-3.png \
  32. floor1-4.png \
  33. hufftree.png \
  34. hufftree-under.png \
  35. residue-pack.png \
  36. residue2.png \
  37. window1.png \
  38. window2.png
  39. SPEC_TEX = \
  40. Vorbis_I_spec.tex \
  41. 01-introduction.tex \
  42. 02-bitpacking.tex \
  43. 03-codebook.tex \
  44. 04-codec.tex \
  45. 05-comment.tex \
  46. 06-floor0.tex \
  47. 07-floor1.tex \
  48. 08-residue.tex \
  49. 09-helper.tex \
  50. 10-tables.tex \
  51. a1-encapsulation-ogg.tex \
  52. a2-encapsulation-rtp.tex \
  53. footer.tex
  54. built_docs = Vorbis_I_spec.pdf Vorbis_I_spec.html Vorbis_I_spec.css
  55. # conditionally make the generated documentation
  56. if BUILD_DOCS
  57. doc_DATA = $(static_docs) $(SPEC_PNG) $(built_docs) doxygen-build.stamp
  58. else
  59. doc_DATA = $(static_docs) doxygen-build.stamp
  60. endif
  61. EXTRA_DIST = $(static_docs) $(built_docs) \
  62. $(SPEC_TEX) $(SPEC_PNG) $(SPEC_PDF) Vorbis_I_spec.cfg Doxyfile.in
  63. # these are expensive; only remove if we have to
  64. MAINTAINERCLEANFILES = $(built_docs)
  65. CLEANFILES = $(SPEC_TEX:%.tex=%.aux) \
  66. Vorbis_I_spec.4ct Vorbis_I_spec.4tc \
  67. Vorbis_I_spec.dvi Vorbis_I_spec.idv \
  68. Vorbis_I_spec.lg Vorbis_I_spec.log \
  69. Vorbis_I_spec.out Vorbis_I_spec.tmp \
  70. Vorbis_I_spec.toc Vorbis_I_spec.xref \
  71. Vorbis_I_spec*.png \
  72. zzVorbis_I_spec.ps
  73. DISTCLEANFILES = $(built_docs)
  74. # explicit rules for generating docs
  75. if BUILD_DOCS
  76. Vorbis_I_spec.html Vorbis_I_spec.css: $(SPEC_TEX) $(SPEC_PNG)
  77. htlatex $<
  78. Vorbis_I_spec.pdf: $(SPEC_TEX) $(SPEC_PNG)
  79. pdflatex $<
  80. pdflatex $<
  81. pdflatex $<
  82. else
  83. Vorbis_I_spec.html: NO_DOCS_ERROR
  84. Vorbis_I_spec.pdf: NO_DOCS_ERROR
  85. NO_DOCS_ERROR:
  86. @echo
  87. @echo "*** Documentation has not been built! ***"
  88. @echo "Try re-running after passing --enable-docs to configure."
  89. @echo
  90. endif
  91. if HAVE_DOXYGEN
  92. doxygen-build.stamp: Doxyfile $(top_srcdir)/include/vorbis/*.h
  93. doxygen
  94. touch doxygen-build.stamp
  95. else
  96. doxygen-build.stamp:
  97. echo "*** Warning: Doxygen not found; documentation will not be built."
  98. touch doxygen-build.stamp
  99. endif
  100. install-data-local: doxygen-build.stamp
  101. $(mkinstalldirs) $(DESTDIR)$(docdir)
  102. if test -d vorbis; then \
  103. for dir in vorbis/*; do \
  104. if test -d $$dir; then \
  105. b=`basename $$dir`; \
  106. $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
  107. for f in $$dir/*; do \
  108. $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
  109. done \
  110. fi \
  111. done \
  112. fi
  113. uninstall-local:
  114. rm -rf $(DESTDIR)$(docdir)
  115. clean-local:
  116. if test -d vorbis; then rm -rf vorbis; fi
  117. if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi