Update to Phil Kerr's vorbis rtp draft.
[platform/upstream/libvorbis.git] / doc / Makefile.am
1 ## Process this with automake to create Makefile.in
2
3 AUTOMAKE_OPTIONS = foreign
4
5 SUBDIRS = vorbisfile vorbisenc
6
7 docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
8
9 static_docs = components.png \
10         draft-kerr-avt-vorbis-rtp-02.txt \
11         eightphase.png \
12         evenlsp.png \
13         floor1-1.png \
14         floor1-2.png \
15         floor1-3.png \
16         floor1-4.png \
17         floor1_inverse_dB_table.html \
18         floorval.png \
19         fourphase.png \
20         framing.html \
21         helper.html \
22         hufftree-under.png \
23         hufftree.png \
24         index.html \
25         lspmap.png \
26         oddlsp.png \
27         oggstream.html \
28         programming.html \
29         residue-pack.png \
30         residue2.png \
31         squarepolar.png \
32         stereo.html \
33         stream.png \
34         v-comment.html \
35         vorbis-clip.txt \
36         vorbis-errors.txt \
37         vorbis-fidelity.html \
38         vorbis.html \
39         vorbisword2.png \
40         wait.png \
41         white-ogg.png \
42         white-xifish.png \
43         window1.png \
44         window2.png
45
46 built_docs = Vorbis_I_spec.html Vorbis_I_spec.pdf
47
48 # conditionally make the generated documentation
49 if BUILD_DOCS
50 doc_DATA = $(static_docs) $(built_docs)
51 else
52 doc_DATA = $(static_docs)
53 endif
54
55 EXTRA_DIST = $(static_docs) $(built_docs)
56
57 doc_sources = xml/Vorbis_I_spec.xml \
58         xml/01-introduction.xml \
59         xml/02-bitpacking.xml \
60         xml/03-codebook.xml \
61         xml/04-codec.xml \
62         xml/05-comment.xml \
63         xml/06-floor0.xml \
64         xml/07-floor1.xml \
65         xml/08-residue.xml \
66         xml/09-helper.xml \
67         xml/10-tables.xml \
68         xml/a1-encapsulation_ogg.xml \
69         xml/a2-encapsulation_rtp.xml \
70         xml/footer.xml \
71         xml/spec-common.xsl \
72         xml/spec-fo.xsl \
73         xml/spec-html.xsl
74
75 nobase_EXTRA_DIST = $(doc_sources)
76
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
80
81 # explicit rules for generating docs
82 Vorbis_I_spec.html:
83         xsltproc --xinclude --output $@ $(srcdir)/xml/spec-html.xsl $(srcdir)/xml/Vorbis_I_spec.xml
84
85 Vorbis_I_spec.fo:
86         xsltproc --xinclude --output $@ $(srcdir)/xml/spec-fo.xsl $(srcdir)/xml/Vorbis_I_spec.xml
87
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
92         rm spec.fo
93         mv spec.pdf $@
94