]> git.sesse.net Git - ffmpeg/blob - doc/Makefile
af_aresample: fix pts, they where off by a packet in the -async >0 case.
[ffmpeg] / doc / Makefile
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/platform.html                                         \
11               doc/syntax.html                                           \
12
13 TXTPAGES    = doc/fate.txt                                              \
14
15
16 DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
17 ifdef HAVE_MAKEINFO
18 DOCS += $(TXTPAGES)
19 endif
20
21 all-$(CONFIG_DOC): documentation
22
23 documentation: $(DOCS)
24
25 TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
26
27 doc/%.txt: TAG = TXT
28 doc/%.txt: doc/%.texi
29         $(Q)$(TEXIDEP)
30         $(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
31
32 doc/print_options.o: libavformat/options_table.h libavcodec/options_table.h
33
34 GENTEXI  = format codec
35 GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
36
37 $(GENTEXI): TAG = GENTEXI
38 $(GENTEXI): doc/avoptions_%.texi: doc/print_options
39         $(M)doc/print_options $* > $@
40
41 doc/%.html: TAG = HTML
42 doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
43         $(Q)$(TEXIDEP)
44         $(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
45
46 doc/%.pod: TAG = POD
47 doc/%.pod: doc/%.texi $(GENTEXI)
48         $(Q)$(TEXIDEP)
49         $(M)$(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
50
51 doc/%.1: TAG = MAN
52 doc/%.1: doc/%.pod $(GENTEXI)
53         $(M)pod2man --section=1 --center=" " --release=" " $< > $@
54
55 $(DOCS): | doc/
56
57 install-progs-$(CONFIG_DOC): install-man
58
59 install-man: $(MANPAGES)
60         $(Q)mkdir -p "$(MANDIR)/man1"
61         $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
62
63 uninstall: uninstall-man
64
65 uninstall-man:
66         $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
67
68 clean::
69         $(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
70
71 -include $(wildcard $(DOCS:%=%.d))
72
73 .PHONY: documentation