matroskadec: do not use avpacket internals
[libav.git] / doc / Makefile
CommitLineData
f87b03b5
MR
1MANPAGES = $(PROGS-yes:%=doc/%.1)
2PODPAGES = $(PROGS-yes:%=doc/%.pod)
47b20a1d
DB
3HTMLPAGES = $(PROGS-yes:%=doc/%.html) \
4 doc/developer.html \
5 doc/faq.html \
1ebbdda1 6 doc/fate.html \
47b20a1d 7 doc/general.html \
2f017d97 8 doc/git-howto.html \
47b20a1d 9 doc/libavfilter.html \
175d0d94 10 doc/nut.html \
1de6e14e 11 doc/platform.html \
f87b03b5 12
47b20a1d 13DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
f87b03b5
MR
14
15all-$(CONFIG_DOC): documentation
16
17documentation: $(DOCS)
18
19TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
20
0d0b81f9
AK
21GENTEXI = format codec
22GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
23
24$(GENTEXI): TAG = GENTEXI
25$(GENTEXI): doc/avoptions_%.texi: doc/print_options
26 $(M)doc/print_options $* > $@
27
f87b03b5 28doc/%.html: TAG = HTML
0d0b81f9 29doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
f87b03b5 30 $(Q)$(TEXIDEP)
2ac3df85 31 $(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
f87b03b5
MR
32
33doc/%.pod: TAG = POD
0d0b81f9 34doc/%.pod: doc/%.texi $(GENTEXI)
f87b03b5 35 $(Q)$(TEXIDEP)
2ac3df85 36 $(M)$(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
f87b03b5
MR
37
38doc/%.1: TAG = MAN
0d0b81f9 39doc/%.1: doc/%.pod $(GENTEXI)
f87b03b5
MR
40 $(M)pod2man --section=1 --center=" " --release=" " $< > $@
41
2efb710a 42$(DOCS): | doc/
5e27ec28 43
f87b03b5
MR
44install-progs-$(CONFIG_DOC): install-man
45
46install-man: $(MANPAGES)
47 $(Q)mkdir -p "$(MANDIR)/man1"
48 $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
49
50uninstall: uninstall-man
51
52uninstall-man:
53 $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
54
55clean::
0d0b81f9 56 $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
f87b03b5
MR
57
58-include $(wildcard $(DOCS:%=%.d))
59
60.PHONY: documentation