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
13 floor1_inverse_dB_table.html \
29 # bits needed by the spec
42 a1-encapsulation-ogg.tex \
43 a2-encapsulation-rtp.tex \
59 # Figure images generated by htlatex
71 Vorbis_I_spec10x.png \
72 Vorbis_I_spec11x.png \
73 Vorbis_I_spec12x.png \
74 Vorbis_I_spec13x.png \
78 built_docs = Vorbis_I_spec.pdf \
79 Vorbis_I_spec.html Vorbis_I_spec.css $(built_SPEC_PNG)
81 # conditionally make the generated documentation
83 doc_DATA = $(static_docs) $(SPEC_PNG) $(built_docs) doxygen-build.stamp
85 doc_DATA = $(static_docs) doxygen-build.stamp
88 EXTRA_DIST = $(static_docs) $(built_docs) \
89 $(SPEC_TEX) $(SPEC_PNG) $(SPEC_PDF) Vorbis_I_spec.cfg Doxyfile.in
91 # these are expensive; only remove if we have to
92 MAINTAINERCLEANFILES = $(built_docs)
93 CLEANFILES = $(SPEC_TEX:%.tex=%.aux) \
94 Vorbis_I_spec.4ct Vorbis_I_spec.4tc \
95 Vorbis_I_spec.dvi Vorbis_I_spec.idv \
96 Vorbis_I_spec.lg Vorbis_I_spec.log \
97 Vorbis_I_spec.out Vorbis_I_spec.tmp \
98 Vorbis_I_spec.toc Vorbis_I_spec.xref \
99 Vorbis_I_spec.out.ps \
102 # explicit rules for generating docs
104 Vorbis_I_spec.html Vorbis_I_spec.css: $(SPEC_TEX) $(SPEC_PNG) fish_xiph_org.png
107 Vorbis_I_spec.pdf: $(SPEC_TEX) $(SPEC_PNG)
112 Vorbis_I_spec.html: NO_DOCS_ERROR
113 Vorbis_I_spec.pdf: NO_DOCS_ERROR
116 @echo "*** Documentation has not been built! ***"
117 @echo "Try re-running after passing --enable-docs to configure."
122 doxygen-build.stamp: Doxyfile $(top_srcdir)/include/vorbis/*.h
124 touch doxygen-build.stamp
127 echo "*** Warning: Documentation build is disabled."
128 touch doxygen-build.stamp
131 install-data-local: doxygen-build.stamp
132 $(mkinstalldirs) $(DESTDIR)$(docdir)
133 if test -d vorbis; then \
134 for dir in vorbis/*; do \
135 if test -d $$dir; then \
136 b=`basename $$dir`; \
137 $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
138 for f in $$dir/*; do \
139 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
146 rm -rf $(DESTDIR)$(docdir)
149 if test -d vorbis; then rm -rf vorbis; fi
150 if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi