Makefile.am 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. ## Process this with automake to create Makefile.in
  2. SUBDIRS = 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. evenlsp.png \
  10. fish_xiph_org.png \
  11. floor1_inverse_dB_table.html \
  12. floorval.png \
  13. fourphase.png \
  14. framing.html \
  15. helper.html \
  16. index.html \
  17. lspmap.png \
  18. oddlsp.png \
  19. oggstream.html \
  20. programming.html \
  21. squarepolar.png \
  22. stereo.html \
  23. stream.png \
  24. v-comment.html \
  25. vorbis-clip.txt \
  26. vorbis-errors.txt \
  27. vorbis-fidelity.html \
  28. vorbis.html \
  29. vorbisword2.png \
  30. wait.png \
  31. white-xifish.png
  32. # bits needed by the spec
  33. SPEC_PNG = \
  34. components.png \
  35. floor1-1.png \
  36. floor1-2.png \
  37. floor1-3.png \
  38. floor1-4.png \
  39. hufftree.png \
  40. hufftree-under.png \
  41. residue-pack.png \
  42. residue2.png \
  43. white-xifish.png \
  44. window1.png \
  45. window2.png
  46. SPEC_PDF = xifish.pdf
  47. # FIXME: also needed here
  48. # white-xifish.png
  49. SPEC_TEX = \
  50. Vorbis_I_spec.tex \
  51. 01-introduction.tex \
  52. 02-bitpacking.tex \
  53. 03-codebook.tex \
  54. 04-codec.tex \
  55. 05-comment.tex \
  56. 06-floor0.tex \
  57. 07-floor1.tex \
  58. 08-residue.tex \
  59. 09-helper.tex \
  60. 10-tables.tex \
  61. a1-encapsulation-ogg.tex \
  62. a2-encapsulation-rtp.tex \
  63. footer.tex
  64. built_docs = Vorbis_I_spec.pdf Vorbis_I_spec.html Vorbis_I_spec.css
  65. # conditionally make the generated documentation
  66. if BUILD_DOCS
  67. doc_DATA = $(static_docs) $(SPEC_PNG) $(built_docs)
  68. else
  69. doc_DATA = $(static_docs)
  70. endif
  71. EXTRA_DIST = $(static_docs) $(built_docs) \
  72. $(SPEC_TEX) $(SPEC_PNG) $(SPEC_PDF) Vorbis_I_spec.cfg
  73. # these are expensive; only remove if we have to
  74. MAINTAINERCLEANFILES = $(built_docs)
  75. CLEANFILES = $(SPEC_TEX:%.tex=%.aux) \
  76. Vorbis_I_spec.4ct Vorbis_I_spec.4tc \
  77. Vorbis_I_spec.dvi Vorbis_I_spec.idv \
  78. Vorbis_I_spec.lg Vorbis_I_spec.log \
  79. Vorbis_I_spec.out Vorbis_I_spec.tmp \
  80. Vorbis_I_spec.toc Vorbis_I_spec.xref \
  81. Vorbis_I_spec*.png \
  82. zzVorbis_I_spec.ps xifish.png
  83. DISTCLEANFILES = $(built_docs)
  84. # explicit rules for generating docs
  85. if BUILD_DOCS
  86. xifish.png: white-xifish.png
  87. cp $< $@
  88. Vorbis_I_spec.html Vorbis_I_spec.css: $(SPEC_TEX) $(SPEC_PNG) xifish.png
  89. htlatex $<
  90. Vorbis_I_spec.pdf: $(SPEC_TEX) $(SPEC_PNG) xifish.png
  91. pdflatex $<
  92. pdflatex $<
  93. pdflatex $<
  94. else
  95. Vorbis_I_spec.html: NO_DOCS_ERROR
  96. Vorbis_I_spec.pdf: NO_DOCS_ERROR
  97. NO_DOCS_ERROR:
  98. @echo
  99. @echo "*** Documentation has not been built! ***"
  100. @echo "Try re-running after passing --enable-docs to configure."
  101. @echo
  102. endif