Documentation updates to reflect crosslap API extentions
[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-moffitt-vorbis-rtp-00.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 # conditionally make the generated documentation
47 if BUILD_DOCS
48 doc_DATA = $(static_docs) Vorbis_I_spec.html Vorbis_I_spec.pdf
49 else
50 doc_DATA = $(static_docs)
51 endif
52
53 ## this requires automake 1.6
54 EXTRA_DIST = $(doc_DATA)
55
56 doc_sources = xml/Vorbis_I_spec.xml \
57         xml/01-introduction.xml \
58         xml/02-bitpacking.xml \
59         xml/03-codebook.xml \  
60         xml/04-codec.xml \           
61         xml/05-comment.xml \         
62         xml/06-floor0.xml \
63         xml/07-floor1.xml \ 
64         xml/08-residue.xml \ 
65         xml/09-helper.xml \ 
66         xml/10-tables.xml \
67         xml/a1-encapsulation_ogg.xml \
68         xml/a2-encapsulation_rtp.xml \
69         xml/footer.xml \
70         xml/spec-common.xsl \
71         xml/spec-fo.xsl \
72         xml/spec-html.xsl
73
74 nobase_EXTRA_DIST = $(doc_sources)
75
76 # explicit rules for generating docs
77 Vorbis_I_spec.html:
78         xsltproc --xinclude --output $@ xml/spec-html.xsl xml/Vorbis_I_spec.xml
79
80 Vorbis_I_spec.fo:
81         xsltproc --xinclude --output $@ xml/spec-fo.xsl xml/Vorbis_I_spec.xml
82
83 Vorbis_I_spec.pdf: Vorbis_I_spec.fo
84         cp $< spec.fo # work around a passivetex bug
85         pdfxmltex --interaction nonstopmode spec.fo
86         pdfxmltex --interaction nonstopmode spec.fo
87         rm spec.fo
88         mv spec.pdf $@
89