1 ## Process this with automake to create Makefile.in
3 AUTOMAKE_OPTIONS = foreign
5 SUBDIRS = vorbisfile vorbisenc
7 docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
9 static_docs = components.png \
10 draft-kerr-avt-vorbis-rtp-02.txt \
17 floor1_inverse_dB_table.html \
37 vorbis-fidelity.html \
46 built_docs = Vorbis_I_spec.html Vorbis_I_spec.pdf
48 # conditionally make the generated documentation
50 doc_DATA = $(static_docs) $(built_docs)
52 doc_DATA = $(static_docs)
55 EXTRA_DIST = $(static_docs) $(built_docs)
57 doc_sources = xml/Vorbis_I_spec.xml \
58 xml/01-introduction.xml \
59 xml/02-bitpacking.xml \
68 xml/a1-encapsulation_ogg.xml \
69 xml/a2-encapsulation_rtp.xml \
75 nobase_EXTRA_DIST = $(doc_sources)
77 # these are expensive; only remove if we have to
78 MAINTAINERCLEANFILES = $(built_docs)
79 CLEANFILES = Vorbis_I_spec.fo spec.aux spec.log spec.out
81 # explicit rules for generating docs
83 xsltproc --xinclude --output $@ $(srcdir)/xml/spec-html.xsl $(srcdir)/xml/Vorbis_I_spec.xml
86 xsltproc --xinclude --output $@ $(srcdir)/xml/spec-fo.xsl $(srcdir)/xml/Vorbis_I_spec.xml
88 Vorbis_I_spec.pdf: Vorbis_I_spec.fo
89 cp $< spec.fo # work around a passivetex bug
90 pdfxmltex --interaction nonstopmode spec.fo
91 pdfxmltex --interaction nonstopmode spec.fo