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 \
33 # bits needed by the spec
60 a1-encapsulation-ogg.tex \
61 a2-encapsulation-rtp.tex \
64 built_docs = Vorbis_I_spec.pdf Vorbis_I_spec.html Vorbis_I_spec.css
66 # conditionally make the generated documentation
68 doc_DATA = $(static_docs) $(SPEC_PNG) $(built_docs) doxygen-build.stamp
70 doc_DATA = $(static_docs) doxygen-build.stamp
73 EXTRA_DIST = $(static_docs) $(built_docs) \
74 $(SPEC_TEX) $(SPEC_PNG) $(SPEC_PDF) Vorbis_I_spec.cfg Doxyfile.in
76 # these are expensive; only remove if we have to
77 MAINTAINERCLEANFILES = $(built_docs)
78 CLEANFILES = $(SPEC_TEX:%.tex=%.aux) \
79 Vorbis_I_spec.4ct Vorbis_I_spec.4tc \
80 Vorbis_I_spec.dvi Vorbis_I_spec.idv \
81 Vorbis_I_spec.lg Vorbis_I_spec.log \
82 Vorbis_I_spec.out Vorbis_I_spec.tmp \
83 Vorbis_I_spec.toc Vorbis_I_spec.xref \
86 DISTCLEANFILES = $(built_docs)
89 # explicit rules for generating docs
91 Vorbis_I_spec.html Vorbis_I_spec.css: $(SPEC_TEX) $(SPEC_PNG)
94 Vorbis_I_spec.pdf: $(SPEC_TEX) $(SPEC_PNG)
99 Vorbis_I_spec.html: NO_DOCS_ERROR
100 Vorbis_I_spec.pdf: NO_DOCS_ERROR
103 @echo "*** Documentation has not been built! ***"
104 @echo "Try re-running after passing --enable-docs to configure."
109 doxygen-build.stamp: Doxyfile $(top_srcdir)/include/vorbis/*.h
111 touch doxygen-build.stamp
114 echo "*** Warning: Doxygen not found; documentation will not be built."
115 touch doxygen-build.stamp
118 install-data-local: doxygen-build.stamp
119 $(mkinstalldirs) $(DESTDIR)$(docdir)
120 if test -d vorbis; then \
121 for dir in vorbis/*; do \
122 if test -d $$dir; then \
123 b=`basename $$dir`; \
124 $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
125 for f in $$dir/*; do \
126 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
133 rm -rf $(DESTDIR)$(docdir)
136 if test -d vorbis; then rm -rf vorbis; fi
137 if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi