1 ## Process this with automake to create Makefile.in
3 SUBDIRS = libvorbis vorbisfile vorbisenc
5 docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
7 ### all of the static docs, commited to SVN and included as is
14 floor1_inverse_dB_table.html \
30 vorbis-fidelity.html \
36 # bits needed by the spec
51 # FIXME: also needed here
66 a1-encapsulation-ogg.tex \
67 a2-encapsulation-rtp.tex \
70 built_docs = Vorbis_I_spec.pdf Vorbis_I_spec.html Vorbis_I_spec.css
72 # conditionally make the generated documentation
74 doc_DATA = $(static_docs) $(SPEC_PNG) $(built_docs) doxygen-build.stamp
76 doc_DATA = $(static_docs) doxygen-build.stamp
79 EXTRA_DIST = $(static_docs) $(built_docs) \
80 $(SPEC_TEX) $(SPEC_PNG) $(SPEC_PDF) Vorbis_I_spec.cfg Doxyfile.in
82 # these are expensive; only remove if we have to
83 MAINTAINERCLEANFILES = $(built_docs)
84 CLEANFILES = $(SPEC_TEX:%.tex=%.aux) \
85 Vorbis_I_spec.4ct Vorbis_I_spec.4tc \
86 Vorbis_I_spec.dvi Vorbis_I_spec.idv \
87 Vorbis_I_spec.lg Vorbis_I_spec.log \
88 Vorbis_I_spec.out Vorbis_I_spec.tmp \
89 Vorbis_I_spec.toc Vorbis_I_spec.xref \
91 zzVorbis_I_spec.ps xifish.png
92 DISTCLEANFILES = $(built_docs)
95 # explicit rules for generating docs
97 xifish.png: white-xifish.png
100 Vorbis_I_spec.html Vorbis_I_spec.css: $(SPEC_TEX) $(SPEC_PNG) xifish.png
103 Vorbis_I_spec.pdf: $(SPEC_TEX) $(SPEC_PNG) xifish.png
108 Vorbis_I_spec.html: NO_DOCS_ERROR
109 Vorbis_I_spec.pdf: NO_DOCS_ERROR
112 @echo "*** Documentation has not been built! ***"
113 @echo "Try re-running after passing --enable-docs to configure."
118 doxygen-build.stamp: Doxyfile $(top_srcdir)/include/vorbis/*.h
120 touch doxygen-build.stamp
123 echo "*** Warning: Doxygen not found; documentation will not be built."
124 touch doxygen-build.stamp
127 install-data-local: doxygen-build.stamp
128 $(mkinstalldirs) $(DESTDIR)$(docdir)
129 if test -d vorbis; then \
130 for dir in vorbis/*; do \
131 if test -d $$dir; then \
132 b=`basename $$dir`; \
133 $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
134 for f in $$dir/*; do \
135 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
142 rm -rf $(DESTDIR)$(docdir)
145 if test -d vorbis; then rm -rf vorbis; fi
146 if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi