Makefile.am 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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_TEX = \
  27. Vorbis_I_spec.tex \
  28. 01-introduction.tex \
  29. 02-bitpacking.tex \
  30. 03-codebook.tex \
  31. 04-codec.tex \
  32. 05-comment.tex \
  33. 06-floor0.tex \
  34. 07-floor1.tex \
  35. 08-residue.tex \
  36. 09-helper.tex \
  37. 10-tables.tex \
  38. a1-encapsulation-ogg.tex \
  39. a2-encapsulation-rtp.tex \
  40. footer.tex
  41. SPEC_PNG = \
  42. components.png \
  43. floor1-1.png \
  44. floor1-2.png \
  45. floor1-3.png \
  46. floor1-4.png \
  47. hufftree.png \
  48. hufftree-under.png \
  49. residue-pack.png \
  50. residue2.png \
  51. window1.png \
  52. window2.png
  53. # Figure images generated by htlatex
  54. built_SPEC_PNG = \
  55. Vorbis_I_spec0x.png \
  56. Vorbis_I_spec1x.png \
  57. Vorbis_I_spec2x.png \
  58. Vorbis_I_spec3x.png \
  59. Vorbis_I_spec4x.png \
  60. Vorbis_I_spec5x.png \
  61. Vorbis_I_spec6x.png \
  62. Vorbis_I_spec7x.png \
  63. Vorbis_I_spec8x.png \
  64. Vorbis_I_spec9x.png \
  65. Vorbis_I_spec10x.png \
  66. Vorbis_I_spec11x.png \
  67. Vorbis_I_spec12x.png \
  68. Vorbis_I_spec13x.png \
  69. Vorbis_I_spec14x.png
  70. built_docs = Vorbis_I_spec.pdf \
  71. Vorbis_I_spec.html Vorbis_I_spec.css $(built_SPEC_PNG)
  72. # conditionally make the generated documentation
  73. if BUILD_DOCS
  74. doc_DATA = $(static_docs) $(SPEC_PNG) $(built_docs) doxygen-build.stamp
  75. else
  76. doc_DATA = $(static_docs) doxygen-build.stamp
  77. endif
  78. EXTRA_DIST = $(static_docs) $(built_docs) \
  79. $(SPEC_TEX) $(SPEC_PNG) $(SPEC_PDF) Vorbis_I_spec.cfg Doxyfile.in
  80. # these are expensive; only remove if we have to
  81. MAINTAINERCLEANFILES = $(built_docs)
  82. CLEANFILES = $(SPEC_TEX:%.tex=%.aux) \
  83. Vorbis_I_spec.4ct Vorbis_I_spec.4tc \
  84. Vorbis_I_spec.dvi Vorbis_I_spec.idv \
  85. Vorbis_I_spec.lg Vorbis_I_spec.log \
  86. Vorbis_I_spec.out Vorbis_I_spec.tmp \
  87. Vorbis_I_spec.toc Vorbis_I_spec.xref \
  88. Vorbis_I_spec.out.ps \
  89. zzVorbis_I_spec.ps
  90. # explicit rules for generating docs
  91. if BUILD_DOCS
  92. Vorbis_I_spec.html Vorbis_I_spec.css: $(SPEC_TEX) $(SPEC_PNG) fish_xiph_org.png
  93. htlatex $<
  94. Vorbis_I_spec.pdf: $(SPEC_TEX) $(SPEC_PNG)
  95. pdflatex $<
  96. pdflatex $<
  97. pdflatex $<
  98. else
  99. Vorbis_I_spec.html: NO_DOCS_ERROR
  100. Vorbis_I_spec.pdf: NO_DOCS_ERROR
  101. NO_DOCS_ERROR:
  102. @echo
  103. @echo "*** Documentation has not been built! ***"
  104. @echo "Try re-running after passing --enable-docs to configure."
  105. @echo
  106. endif
  107. if HAVE_DOXYGEN
  108. doxygen-build.stamp: Doxyfile $(top_srcdir)/include/vorbis/*.h
  109. doxygen
  110. touch doxygen-build.stamp
  111. else
  112. doxygen-build.stamp:
  113. echo "*** Warning: Documentation build is disabled."
  114. touch doxygen-build.stamp
  115. endif
  116. install-data-local: doxygen-build.stamp
  117. $(mkinstalldirs) $(DESTDIR)$(docdir)
  118. if test -d vorbis; then \
  119. for dir in vorbis/*; do \
  120. if test -d $$dir; then \
  121. b=`basename $$dir`; \
  122. $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
  123. for f in $$dir/*; do \
  124. $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
  125. done \
  126. fi \
  127. done \
  128. fi
  129. uninstall-local:
  130. rm -rf $(DESTDIR)$(docdir)
  131. clean-local:
  132. if test -d vorbis; then rm -rf vorbis; fi
  133. if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi