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