Remove the original html documentation. The docbook version is now on
[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 # conditionally make the generated documentation
10 if BUILD_DOCS
11 built_docs = Vorbis_I_spec.html Vorbis_I_spec.pdf
12 else
13 built_docs =
14 endif !BUILD_DOCS
15
16 doc_DATA = components.png \
17         draft-moffitt-vorbis-rtp-00.txt \
18         eightphase.png \
19         evenlsp.png \
20         floor1-1.png \
21         floor1-2.png \
22         floor1-3.png \
23         floor1-4.png \
24         floor1_inverse_dB_table.html \
25         floorval.png \
26         fourphase.png \
27         framing.html \
28         helper.html \
29         hufftree-under.png \
30         hufftree.png \
31         index.html \
32         lspmap.png \
33         oddlsp.png \
34         oggstream.html \
35         programming.html \
36         residue-pack.png \
37         residue2.png \
38         squarepolar.png \
39         stereo.html \
40         stream.png \
41         v-comment.html \
42         vorbis-clip.txt \
43         vorbis-errors.txt \
44         vorbis-fidelity.html \
45         vorbis.html \
46         vorbisword2.png \
47         wait.png \
48         white-ogg.png \
49         white-xifish.png \
50         window1.png \
51         window2.png \
52         Vorbis_I_spec.html \
53         $(built_docs)
54
55 doc_sources = xml/Vorbis_I_spec.xml \
56         xml/01-introduction.xml \
57         xml/02-bitpacking.xml \
58         xml/03-codebook.xml \  
59         xml/04-codec.xml \           
60         xml/05-comment.xml \         
61         xml/06-floor0.xml \
62         xml/07-floor1.xml \ 
63         xml/08-residue.xml \ 
64         xml/09-helper.xml \ 
65         xml/10-tables.xml \
66         xml/a1-encapsulation_ogg.xml \
67         xml/a2-encapsulation_rtp.xml \
68         xml/footer.xml \
69         xml/spec-common.xsl \
70         xml/spec-fo.xsl \
71         xml/spec-html.xsl
72
73 EXTRA_DIST = $(doc_DATA)
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