1 MANPAGES = $(PROGS-yes:%=doc/%.1)
2 PODPAGES = $(PROGS-yes:%=doc/%.pod)
3 HTMLPAGES = $(PROGS-yes:%=doc/%.html) \
12 TXTPAGES = doc/fate.txt \
15 DOCS-$(HAVE_TEXI2HTML) += $(HTMLPAGES)
16 DOCS-$(HAVE_POD2MAN) += $(MANPAGES) $(PODPAGES)
17 DOCS-$(HAVE_MAKEINFO) += $(TXTPAGES)
20 all-$(CONFIG_DOC): documentation
22 documentation: $(DOCS)
24 TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
29 $(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
31 doc/print_options.o: libavformat/options_table.h libavcodec/options_table.h
33 GENTEXI = format codec
34 GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
36 $(GENTEXI): TAG = GENTEXI
37 $(GENTEXI): doc/avoptions_%.texi: doc/print_options$(HOSTEXESUF)
38 $(M)doc/print_options $* > $@
40 doc/%.html: TAG = HTML
41 doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
43 $(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
46 doc/%.pod: doc/%.texi $(GENTEXI)
48 $(M)$(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
51 doc/%.1: doc/%.pod $(GENTEXI)
52 $(M)pod2man --section=1 --center=" " --release=" " $< > $@
59 install-progs-$(CONFIG_DOC): install-man
61 install-man: $(MANPAGES)
62 $(Q)mkdir -p "$(MANDIR)/man1"
63 $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
66 uninstall: uninstall-man
69 $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
72 $(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
74 -include $(wildcard $(DOCS:%=%.d))