flac: add channel layout masks for streams with 7 or 8 channels.
[FFMpeg-mirror/mplayer-patches.git] / doc / Makefile
blob43e463207ea965f574d26c63c10ebc7fe744196d
1 MANPAGES = $(PROGS-yes:%=doc/%.1)
2 PODPAGES = $(PROGS-yes:%=doc/%.pod)
3 HTMLPAGES = $(PROGS-yes:%=doc/%.html) \
4 doc/developer.html \
5 doc/faq.html \
6 doc/fate.html \
7 doc/general.html \
8 doc/git-howto.html \
9 doc/libavfilter.html \
10 doc/nut.html \
11 doc/platform.html \
13 DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
15 all-$(CONFIG_DOC): documentation
17 apidoc: doc/doxy/html
18 documentation: $(DOCS)
20 TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
22 GENTEXI = format codec
23 GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
25 $(GENTEXI): TAG = GENTEXI
26 $(GENTEXI): doc/avoptions_%.texi: doc/print_options
27 $(M)doc/print_options $* > $@
29 doc/%.html: TAG = HTML
30 doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
31 $(Q)$(TEXIDEP)
32 $(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
34 doc/%.pod: TAG = POD
35 doc/%.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI)
36 $(Q)$(TEXIDEP)
37 $(M)$(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
39 doc/%.1: TAG = MAN
40 doc/%.1: doc/%.pod $(GENTEXI)
41 $(M)pod2man --section=1 --center=" " --release=" " $< > $@
43 $(DOCS) doc/doxy/html: | doc/
45 doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS)
46 $(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $^
48 install-progs-$(CONFIG_DOC): install-man
50 install-man: $(MANPAGES)
51 $(Q)mkdir -p "$(MANDIR)/man1"
52 $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
54 uninstall: uninstall-man
56 uninstall-man:
57 $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
59 clean::
60 $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
61 $(RM) -r doc/doxy/html
63 -include $(wildcard $(DOCS:%=%.d))
65 .PHONY: apidoc documentation