This patch fixes a few autotools issues with vorbis svn
[platform/upstream/libvorbis.git] / doc / Makefile.am
1 ## Process this with automake to create Makefile.in
2
3 SUBDIRS = vorbisfile vorbisenc
4
5 docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
6
7 static_docs = components.png \
8         draft-kerr-avt-vorbis-rtp-03.txt \
9         eightphase.png \
10         evenlsp.png \
11         floor1-1.png \
12         floor1-2.png \
13         floor1-3.png \
14         floor1-4.png \
15         floor1_inverse_dB_table.html \
16         floorval.png \
17         fourphase.png \
18         framing.html \
19         helper.html \
20         hufftree-under.png \
21         hufftree.png \
22         index.html \
23         lspmap.png \
24         oddlsp.png \
25         oggstream.html \
26         programming.html \
27         residue-pack.png \
28         residue2.png \
29         squarepolar.png \
30         stereo.html \
31         stream.png \
32         v-comment.html \
33         vorbis-clip.txt \
34         vorbis-errors.txt \
35         vorbis-fidelity.html \
36         vorbis.html \
37         vorbisword2.png \
38         wait.png \
39         white-ogg.png \
40         white-xifish.png \
41         window1.png \
42         window2.png
43
44 built_docs = Vorbis_I_spec.html Vorbis_I_spec.pdf
45
46 # conditionally make the generated documentation
47 if BUILD_DOCS
48 doc_DATA = $(static_docs) $(built_docs)
49 else
50 doc_DATA = $(static_docs)
51 endif
52
53 EXTRA_DIST = $(static_docs) $(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 nobase_EXTRA_DIST = $(doc_sources)
74
75 # these are expensive; only remove if we have to
76 MAINTAINERCLEANFILES = $(built_docs)
77 CLEANFILES = Vorbis_I_spec.fo spec.aux spec.log spec.out
78
79 # explicit rules for generating docs
80 Vorbis_I_spec.html:
81         xsltproc --xinclude --output $@ $(srcdir)/xml/spec-html.xsl $(srcdir)/xml/Vorbis_I_spec.xml
82
83 Vorbis_I_spec.fo:
84         xsltproc --xinclude --output $@ $(srcdir)/xml/spec-fo.xsl $(srcdir)/xml/Vorbis_I_spec.xml
85
86 Vorbis_I_spec.pdf: Vorbis_I_spec.fo
87         cp $< spec.fo # work around a passivetex bug
88         pdfxmltex --interaction nonstopmode spec.fo
89         pdfxmltex --interaction nonstopmode spec.fo
90         rm spec.fo
91         mv spec.pdf $@
92