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 \
32 # bits needed by the spec
59 a1-encapsulation-ogg.tex \
60 a2-encapsulation-rtp.tex \
63 built_docs = Vorbis_I_spec.pdf Vorbis_I_spec.html Vorbis_I_spec.css
65 # conditionally make the generated documentation
67 doc_DATA = $(static_docs) $(SPEC_PNG) $(built_docs) doxygen-build.stamp
69 doc_DATA = $(static_docs) doxygen-build.stamp
72 EXTRA_DIST = $(static_docs) $(built_docs) \
73 $(SPEC_TEX) $(SPEC_PNG) $(SPEC_PDF) Vorbis_I_spec.cfg Doxyfile.in
75 # these are expensive; only remove if we have to
76 MAINTAINERCLEANFILES = $(built_docs)
77 CLEANFILES = $(SPEC_TEX:%.tex=%.aux) \
78 Vorbis_I_spec.4ct Vorbis_I_spec.4tc \
79 Vorbis_I_spec.dvi Vorbis_I_spec.idv \
80 Vorbis_I_spec.lg Vorbis_I_spec.log \
81 Vorbis_I_spec.out Vorbis_I_spec.tmp \
82 Vorbis_I_spec.toc Vorbis_I_spec.xref \
85 DISTCLEANFILES = $(built_docs)
88 # explicit rules for generating docs
90 Vorbis_I_spec.html Vorbis_I_spec.css: $(SPEC_TEX) $(SPEC_PNG)
93 Vorbis_I_spec.pdf: $(SPEC_TEX) $(SPEC_PNG)
98 Vorbis_I_spec.html: NO_DOCS_ERROR
99 Vorbis_I_spec.pdf: NO_DOCS_ERROR
102 @echo "*** Documentation has not been built! ***"
103 @echo "Try re-running after passing --enable-docs to configure."
108 doxygen-build.stamp: Doxyfile $(top_srcdir)/include/vorbis/*.h
110 touch doxygen-build.stamp
113 echo "*** Warning: Doxygen not found; documentation will not be built."
114 touch doxygen-build.stamp
117 install-data-local: doxygen-build.stamp
118 $(mkinstalldirs) $(DESTDIR)$(docdir)
119 if test -d vorbis; then \
120 for dir in vorbis/*; do \
121 if test -d $$dir; then \
122 b=`basename $$dir`; \
123 $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
124 for f in $$dir/*; do \
125 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
132 rm -rf $(DESTDIR)$(docdir)
135 if test -d vorbis; then rm -rf vorbis; fi
136 if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi