Remove a duplicate dependency.
[theora.git] / doc / spec / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # makefile to generate the spec document from sources
4 # requires transfig and pdflatex
5
6 built_docs = Theora.pdf
7
8 if BUILD_SPEC
9 doc_DATA = $(built_docs)
10 endif
11
12 SPEC_SRCS = spec.tex spec.bib
13
14 FIG_SRCS = pic-frame.fig hilbert-mb.fig hilbert-block.fig xifish.fig \
15            superblock.fig macroblock.fig raster-block.fig reference-frames.fig \
16            pixel444.fig pixel422.fig pixel420.fig idct.fig fdct.fig \
17            pic_even.fig pic_even_odd.fig pic_odd.fig pic_odd_even.fig \
18            lflim.fig
19
20 FIG_TEXS = $(FIG_SRCS:.fig=.tex)
21 FIG_AUXS = $(FIG_SRCS:.fig=.aux)
22 FIG_PDFS = $(FIG_SRCS:.fig=.pdf)
23
24 # add any native-pdf figures here
25 FIG_OBJS = $(FIG_PDFS)
26
27 EXTRA_DIST = $(built_docs) $(SPEC_SRCS) $(FIG_SRCS) ltablex.sty
28
29 if BUILD_SPEC
30 # latex three times is the charm with references
31 # long tables require the .aux file to start from scratch
32 Theora.pdf : $(SPEC_SRCS) $(FIG_OBJS) vp3huff.tex
33         -$(RM) spec.aux
34         pdflatex -interaction nonstopmode spec.tex
35         bibtex spec.aux
36         pdflatex -interaction nonstopmode spec.tex
37         pdflatex -interaction nonstopmode spec.tex
38         mv spec.pdf $@
39 else
40 Theora.pdf : 
41         echo "*** Warning: Missing tools; $@ will not be built."
42 endif
43
44 vp3huff.tex : vp3huff
45         ./vp3huff > $@
46
47 noinst_PROGRAMS = vp3huff
48 vp3huff_SOURCES = vp3huff.c
49  
50 figures : $(FIG_OBJS)
51
52 # rules to generate latex and pdf versions of the xfig figures
53 .fig.tex:
54         fig2dev -L latex $< $@
55
56 .fig.pdf:
57         fig2dev -L pdf -p 0 $< $@
58
59 SUFFIXES = .fig .tex .pdf
60
61 # clean targets
62 clean-local:
63         -$(RM) $(FIG_TEXS)
64         -$(RM) $(FIG_AUXS)
65         -$(RM) $(FIG_PDFS)
66         -$(RM) vp3huff
67         -$(RM) vp3huff.tex
68         -$(RM) vp3huff.aux
69         -$(RM) spec.aux
70         -$(RM) spec.log
71         -$(RM) spec.lof
72         -$(RM) spec.lot
73         -$(RM) spec.out
74         -$(RM) spec.bbl
75         -$(RM) spec.blg
76         -$(RM) spec.toc
77
78 maintainer-clean-local:
79         -$(RM) $(built_docs)
80
81 maintainerclean: maintainer-clean