1 LIBRARIES-$(CONFIG_AVUTIL) += libavutil
2 LIBRARIES-$(CONFIG_SWSCALE) += libswscale
3 LIBRARIES-$(CONFIG_SWRESAMPLE) += libswresample
4 LIBRARIES-$(CONFIG_AVCODEC) += libavcodec
5 LIBRARIES-$(CONFIG_AVFORMAT) += libavformat
6 LIBRARIES-$(CONFIG_AVDEVICE) += libavdevice
7 LIBRARIES-$(CONFIG_AVFILTER) += libavfilter
9 COMPONENTS-yes = $(PROGS-yes)
10 COMPONENTS-$(CONFIG_AVUTIL) += ffmpeg-utils
11 COMPONENTS-$(CONFIG_SWSCALE) += ffmpeg-scaler
12 COMPONENTS-$(CONFIG_SWRESAMPLE) += ffmpeg-resampler
13 COMPONENTS-$(CONFIG_AVCODEC) += ffmpeg-codecs ffmpeg-bitstream-filters
14 COMPONENTS-$(CONFIG_AVFORMAT) += ffmpeg-formats ffmpeg-protocols
15 COMPONENTS-$(CONFIG_AVDEVICE) += ffmpeg-devices
16 COMPONENTS-$(CONFIG_AVFILTER) += ffmpeg-filters
18 MANPAGES = $(COMPONENTS-yes:%=doc/%.1) $(LIBRARIES-yes:%=doc/%.3)
19 PODPAGES = $(COMPONENTS-yes:%=doc/%.pod) $(LIBRARIES-yes:%=doc/%.pod)
20 HTMLPAGES = $(COMPONENTS-yes:%=doc/%.html) $(LIBRARIES-yes:%=doc/%.html) \
30 TXTPAGES = doc/fate.txt \
33 DOCS-$(CONFIG_HTMLPAGES) += $(HTMLPAGES)
34 DOCS-$(CONFIG_PODPAGES) += $(PODPAGES)
35 DOCS-$(CONFIG_MANPAGES) += $(MANPAGES)
36 DOCS-$(CONFIG_TXTPAGES) += $(TXTPAGES)
39 all-$(CONFIG_DOC): doc
44 documentation: $(DOCS)
46 TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
51 $(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
53 GENTEXI = format codec
54 GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
56 $(GENTEXI): TAG = GENTEXI
57 $(GENTEXI): doc/avoptions_%.texi: doc/print_options$(HOSTEXESUF)
58 $(M)doc/print_options $* > $@
60 doc/%.html: TAG = HTML
61 doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
63 $(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
66 doc/%.pod: doc/%.texi $(GENTEXI)
68 $(M)perl $(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
70 doc/%.1 doc/%.3: TAG = MAN
71 doc/%.1: doc/%.pod $(GENTEXI)
72 $(M)pod2man --section=1 --center=" " --release=" " $< > $@
73 doc/%.3: doc/%.pod $(GENTEXI)
74 $(M)pod2man --section=3 --center=" " --release=" " $< > $@
76 $(DOCS) doc/doxy/html: | doc/
78 doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS)
79 $(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $^
84 install-progs-$(CONFIG_DOC): install-man
86 install-man: $(MANPAGES)
87 $(Q)mkdir -p "$(MANDIR)/man1"
88 $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
91 uninstall: uninstall-man
94 $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
97 $(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 doc/*.3 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
98 $(RM) -r doc/doxy/html
100 -include $(wildcard $(DOCS:%=%.d))
102 .PHONY: apidoc doc documentation