1 MANPAGES = $(PROGS-yes:%=doc/%.1)
2 PODPAGES = $(PROGS-yes:%=doc/%.pod)
3 HTMLPAGES = $(PROGS-yes:%=doc/%.html) \
13 TXTPAGES = doc/fate.txt \
16 DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
21 all-$(CONFIG_DOC): documentation
23 documentation: $(DOCS)
25 TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
30 $(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
32 doc/print_options.o: libavformat/options_table.h libavcodec/options_table.h
34 GENTEXI = format codec
35 GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
37 $(GENTEXI): TAG = GENTEXI
38 $(GENTEXI): doc/avoptions_%.texi: doc/print_options
39 $(M)doc/print_options $* > $@
41 doc/%.html: TAG = HTML
42 doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
44 $(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
47 doc/%.pod: doc/%.texi $(GENTEXI)
49 $(M)$(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
52 doc/%.1: doc/%.pod $(GENTEXI)
53 $(M)pod2man --section=1 --center=" " --release=" " $< > $@
57 install-progs-$(CONFIG_DOC): install-man
59 install-man: $(MANPAGES)
60 $(Q)mkdir -p "$(MANDIR)/man1"
61 $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
63 uninstall: uninstall-man
66 $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
69 $(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
71 -include $(wildcard $(DOCS:%=%.d))