doc/avconv: remove entries for AVOptions.
[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 \
1de6e14e 10 doc/platform.html \
f87b03b5 11
47b20a1d 12DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
f87b03b5
MR
13
14all-$(CONFIG_DOC): documentation
15
16documentation: $(DOCS)
17
18TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
19
20doc/%.html: TAG = HTML
f038cf3c 21doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init
f87b03b5 22 $(Q)$(TEXIDEP)
f038cf3c 23 $(M)texi2html -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
f87b03b5
MR
24
25doc/%.pod: TAG = POD
26doc/%.pod: doc/%.texi
27 $(Q)$(TEXIDEP)
7ac6910d 28 $(M)$(SRC_PATH)/doc/texi2pod.pl $< $@
f87b03b5
MR
29
30doc/%.1: TAG = MAN
31doc/%.1: doc/%.pod
32 $(M)pod2man --section=1 --center=" " --release=" " $< > $@
33
5e27ec28
MR
34$(DOCS): | doc
35OBJDIRS += doc
36
f87b03b5
MR
37install-progs-$(CONFIG_DOC): install-man
38
39install-man: $(MANPAGES)
40 $(Q)mkdir -p "$(MANDIR)/man1"
41 $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
42
43uninstall: uninstall-man
44
45uninstall-man:
46 $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
47
48clean::
49 $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%)
50
51-include $(wildcard $(DOCS:%=%.d))
52
53.PHONY: documentation