cf56c207 |
LIBRARIES-$(CONFIG_AVUTIL) += libavutil
LIBRARIES-$(CONFIG_SWSCALE) += libswscale
LIBRARIES-$(CONFIG_SWRESAMPLE) += libswresample
LIBRARIES-$(CONFIG_AVCODEC) += libavcodec
LIBRARIES-$(CONFIG_AVFORMAT) += libavformat
LIBRARIES-$(CONFIG_AVDEVICE) += libavdevice
LIBRARIES-$(CONFIG_AVFILTER) += libavfilter |
617d0d41 |
|
cf56c207 |
COMPONENTS-$(CONFIG_AVUTIL) += ffmpeg-utils
COMPONENTS-$(CONFIG_SWSCALE) += ffmpeg-scaler
COMPONENTS-$(CONFIG_SWRESAMPLE) += ffmpeg-resampler
COMPONENTS-$(CONFIG_AVCODEC) += ffmpeg-codecs ffmpeg-bitstream-filters
COMPONENTS-$(CONFIG_AVFORMAT) += ffmpeg-formats ffmpeg-protocols
COMPONENTS-$(CONFIG_AVDEVICE) += ffmpeg-devices
COMPONENTS-$(CONFIG_AVFILTER) += ffmpeg-filters |
fa4ead1d |
|
5ded4332 |
MANPAGES1 = $(AVPROGS-yes:%=doc/%.1) $(AVPROGS-yes:%=doc/%-all.1) $(COMPONENTS-yes:%=doc/%.1) |
be3f4c13 |
MANPAGES3 = $(LIBRARIES-yes:%=doc/%.3)
MANPAGES = $(MANPAGES1) $(MANPAGES3) |
5ded4332 |
PODPAGES = $(AVPROGS-yes:%=doc/%.pod) $(AVPROGS-yes:%=doc/%-all.pod) $(COMPONENTS-yes:%=doc/%.pod) $(LIBRARIES-yes:%=doc/%.pod)
HTMLPAGES = $(AVPROGS-yes:%=doc/%.html) $(AVPROGS-yes:%=doc/%-all.html) $(COMPONENTS-yes:%=doc/%.html) $(LIBRARIES-yes:%=doc/%.html) \ |
47b20a1d |
doc/developer.html \
doc/faq.html \ |
1ebbdda1 |
doc/fate.html \ |
47b20a1d |
doc/general.html \ |
2f017d97 |
doc/git-howto.html \ |
d17a0037 |
doc/mailing-list-faq.html \ |
175d0d94 |
doc/nut.html \ |
1de6e14e |
doc/platform.html \ |
f87b03b5 |
|
abab4408 |
TXTPAGES = doc/fate.txt \
|
c3da2c19 |
DOCS-$(CONFIG_HTMLPAGES) += $(HTMLPAGES)
DOCS-$(CONFIG_PODPAGES) += $(PODPAGES)
DOCS-$(CONFIG_MANPAGES) += $(MANPAGES)
DOCS-$(CONFIG_TXTPAGES) += $(TXTPAGES) |
3e03f8d8 |
DOCS = $(DOCS-yes) |
f87b03b5 |
|
eff2edae |
all-$(CONFIG_DOC): doc
|
8e2cf68d |
doc: documentation |
f87b03b5 |
|
b3fab1f2 |
apidoc: doc/doxy/html |
f87b03b5 |
documentation: $(DOCS)
|
5b073da7 |
TEXIDEP = perl $(SRC_PATH)/doc/texidep.pl $(SRC_PATH) $< $@ >$(@:%=%.d) |
f87b03b5 |
|
abab4408 |
doc/%.txt: TAG = TXT
doc/%.txt: doc/%.texi
$(Q)$(TEXIDEP)
$(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
|
0d0b81f9 |
GENTEXI = format codec
GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
$(GENTEXI): TAG = GENTEXI |
d48f014f |
$(GENTEXI): doc/avoptions_%.texi: doc/print_options$(HOSTEXESUF) |
0d0b81f9 |
$(M)doc/print_options $* > $@
|
f87b03b5 |
doc/%.html: TAG = HTML |
17ad5fbb |
doc/%-all.html: TAG = HTML
ifdef HAVE_MAKEINFO_HTML
doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.pm $(GENTEXI)
$(Q)$(TEXIDEP)
$(M)makeinfo --html -I doc --no-split -D config-not-all --init-file=$(SRC_PATH)/doc/t2h.pm --output $@ $<
doc/%-all.html: doc/%.texi $(SRC_PATH)/doc/t2h.pm $(GENTEXI)
$(Q)$(TEXIDEP)
$(M)makeinfo --html -I doc --no-split -D config-all --init-file=$(SRC_PATH)/doc/t2h.pm --output $@ $<
else |
0d0b81f9 |
doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI) |
f87b03b5 |
$(Q)$(TEXIDEP) |
9b4d9d87 |
$(M)texi2html -I doc -monolithic --D=config-not-all --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
doc/%-all.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
$(Q)$(TEXIDEP)
$(M)texi2html -I doc -monolithic --D=config-all --init-file $(SRC_PATH)/doc/t2h.init --output $@ $< |
17ad5fbb |
endif |
f87b03b5 |
doc/%.pod: TAG = POD |
7a95afe4 |
doc/%.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI) |
f87b03b5 |
$(Q)$(TEXIDEP) |
9b4d9d87 |
$(M)perl $(SRC_PATH)/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc $< $@
doc/%-all.pod: TAG = POD
doc/%-all.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI)
$(Q)$(TEXIDEP)
$(M)perl $(SRC_PATH)/doc/texi2pod.pl -Dconfig-all=yes -Idoc $< $@ |
f87b03b5 |
|
617d0d41 |
doc/%.1 doc/%.3: TAG = MAN |
c0aff406 |
doc/%.1: doc/%.pod $(GENTEXI) |
103e4c58 |
$(M)pod2man --section=1 --center=" " --release=" " --date=" " $< > $@ |
c0aff406 |
doc/%.3: doc/%.pod $(GENTEXI) |
103e4c58 |
$(M)pod2man --section=3 --center=" " --release=" " --date=" " $< > $@ |
f87b03b5 |
|
b3fab1f2 |
$(DOCS) doc/doxy/html: | doc/
|
b25d6290 |
DOXY_INPUT = $(INSTHEADERS) |
3f17751e |
DOXY_INPUT_DEPS = $(addprefix $(SRC_PATH)/, $(DOXY_INPUT)) ffbuild/config.mak |
58f0d164 |
|
8e6a66b6 |
doc/doxy/html: TAG = DOXY |
753930bc |
doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(SRC_PATH)/doc/doxy-wrapper.sh $(DOXY_INPUT_DEPS)
$(M)OUT_DIR=$$PWD/doc/doxy; cd $(SRC_PATH); ./doc/doxy-wrapper.sh $$OUT_DIR $< $(DOXYGEN) $(DOXY_INPUT); |
5e27ec28 |
|
e3d34100 |
install-doc: install-html install-man
|
1e97ae4b |
install-html: |
2df184f3 |
|
3e03f8d8 |
install-man:
|
2df184f3 |
ifdef CONFIG_HTMLPAGES |
eff2edae |
install-progs-$(CONFIG_DOC): install-html |
f4ca970d |
|
1e97ae4b |
install-html: $(HTMLPAGES) |
f4ca970d |
$(Q)mkdir -p "$(DOCDIR)"
$(INSTALL) -m 644 $(HTMLPAGES) "$(DOCDIR)" |
2df184f3 |
endif
ifdef CONFIG_MANPAGES |
eff2edae |
install-progs-$(CONFIG_DOC): install-man |
f87b03b5 |
install-man: $(MANPAGES)
$(Q)mkdir -p "$(MANDIR)/man1" |
be3f4c13 |
$(INSTALL) -m 644 $(MANPAGES1) "$(MANDIR)/man1"
$(Q)mkdir -p "$(MANDIR)/man3"
$(INSTALL) -m 644 $(MANPAGES3) "$(MANDIR)/man3" |
3e03f8d8 |
endif |
f87b03b5 |
|
e3d34100 |
uninstall: uninstall-doc
uninstall-doc: uninstall-html uninstall-man |
f4ca970d |
|
1e97ae4b |
uninstall-html: |
f4ca970d |
$(RM) -r "$(DOCDIR)" |
f87b03b5 |
uninstall-man: |
5ded4332 |
$(RM) $(addprefix "$(MANDIR)/man1/",$(AVPROGS-yes:%=%.1) $(AVPROGS-yes:%=%-all.1) $(COMPONENTS-yes:%=%.1)) |
af1c5388 |
$(RM) $(addprefix "$(MANDIR)/man3/",$(LIBRARIES-yes:%=%.3)) |
f87b03b5 |
|
4f8b7312 |
clean:: docclean |
9bba6835 |
|
9b4d9d87 |
distclean:: docclean
$(RM) doc/config.texi
|
b25d6290 |
docclean:: |
fe318e14 |
$(RM) $(CLEANSUFFIXES:%=doc/%) |
6d34aa24 |
$(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 doc/*.3 doc/avoptions_*.texi |
b3fab1f2 |
$(RM) -r doc/doxy/html |
f87b03b5 |
-include $(wildcard $(DOCS:%=%.d))
|
2581d9bc |
.PHONY: apidoc doc documentation |