1 MANPAGES = $(PROGS-yes:%=doc/%.1)
2 PODPAGES = $(PROGS-yes:%=doc/%.pod)
3 HTMLPAGES = $(PROGS-yes:%=doc/%.html) \
12 DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
14 all-$(CONFIG_DOC): documentation
16 documentation: $(DOCS)
18 TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
20 doc/print_options.o: libavformat/options_table.h libavcodec/options_table.h
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)
32 $(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
35 doc/%.pod: doc/%.texi $(GENTEXI)
37 $(M)$(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
40 doc/%.1: doc/%.pod $(GENTEXI)
41 $(M)pod2man --section=1 --center=" " --release=" " $< > $@
45 install-progs-$(CONFIG_DOC): install-man
47 install-man: $(MANPAGES)
48 $(Q)mkdir -p "$(MANDIR)/man1"
49 $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
51 uninstall: uninstall-man
54 $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
57 $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
59 -include $(wildcard $(DOCS:%=%.d))