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 \
35 # bits needed by the spec
62 a1-encapsulation-ogg.tex \
63 a2-encapsulation-rtp.tex \
66 built_docs = Vorbis_I_spec.pdf Vorbis_I_spec.html Vorbis_I_spec.css
68 # conditionally make the generated documentation
70 doc_DATA = $(static_docs) $(SPEC_PNG) $(built_docs) doxygen-build.stamp
72 doc_DATA = $(static_docs) doxygen-build.stamp
75 EXTRA_DIST = $(static_docs) $(built_docs) \
76 $(SPEC_TEX) $(SPEC_PNG) $(SPEC_PDF) Vorbis_I_spec.cfg Doxyfile.in
78 # these are expensive; only remove if we have to
79 MAINTAINERCLEANFILES = $(built_docs)
80 CLEANFILES = $(SPEC_TEX:%.tex=%.aux) \
81 Vorbis_I_spec.4ct Vorbis_I_spec.4tc \
82 Vorbis_I_spec.dvi Vorbis_I_spec.idv \
83 Vorbis_I_spec.lg Vorbis_I_spec.log \
84 Vorbis_I_spec.out Vorbis_I_spec.tmp \
85 Vorbis_I_spec.toc Vorbis_I_spec.xref \
88 DISTCLEANFILES = $(built_docs)
91 # explicit rules for generating docs
93 Vorbis_I_spec.html Vorbis_I_spec.css: $(SPEC_TEX) $(SPEC_PNG)
96 Vorbis_I_spec.pdf: $(SPEC_TEX) $(SPEC_PNG)
101 Vorbis_I_spec.html: NO_DOCS_ERROR
102 Vorbis_I_spec.pdf: NO_DOCS_ERROR
105 @echo "*** Documentation has not been built! ***"
106 @echo "Try re-running after passing --enable-docs to configure."
111 doxygen-build.stamp: Doxyfile $(top_srcdir)/include/vorbis/*.h
113 touch doxygen-build.stamp
116 echo "*** Warning: Doxygen not found; documentation will not be built."
117 touch doxygen-build.stamp
120 install-data-local: doxygen-build.stamp
121 $(mkinstalldirs) $(DESTDIR)$(docdir)
122 if test -d vorbis; then \
123 for dir in vorbis/*; do \
124 if test -d $$dir; then \
125 b=`basename $$dir`; \
126 $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
127 for f in $$dir/*; do \
128 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
135 rm -rf $(DESTDIR)$(docdir)
138 if test -d vorbis; then rm -rf vorbis; fi
139 if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi