Makefile.am 3.3 KB

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