2012-11-28 23:13:28 +00:00
|
|
|
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
|
2012-11-01 12:20:44 +00:00
|
|
|
|
2012-11-28 23:13:28 +00:00
|
|
|
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
|
2012-11-18 12:00:11 +00:00
|
|
|
|
2013-11-25 23:05:38 +00:00
|
|
|
MANPAGES1 = $(AVPROGS-yes:%=doc/%.1) $(AVPROGS-yes:%=doc/%-all.1) $(COMPONENTS-yes:%=doc/%.1)
|
2013-05-18 13:10:21 +00:00
|
|
|
MANPAGES3 = $(LIBRARIES-yes:%=doc/%.3)
|
|
|
|
MANPAGES = $(MANPAGES1) $(MANPAGES3)
|
2013-11-25 23:05:38 +00:00
|
|
|
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) \
|
2023-02-08 15:57:53 +00:00
|
|
|
doc/community.html \
|
2011-12-07 20:49:53 +00:00
|
|
|
doc/developer.html \
|
|
|
|
doc/faq.html \
|
2011-12-02 00:33:07 +00:00
|
|
|
doc/fate.html \
|
2011-12-07 20:49:53 +00:00
|
|
|
doc/general.html \
|
2011-12-03 17:06:14 +00:00
|
|
|
doc/git-howto.html \
|
2017-09-27 22:35:12 +00:00
|
|
|
doc/mailing-list-faq.html \
|
2011-12-13 22:50:20 +00:00
|
|
|
doc/nut.html \
|
2011-12-03 20:25:04 +00:00
|
|
|
doc/platform.html \
|
2022-04-19 11:04:42 +00:00
|
|
|
$(SRC_PATH)/doc/bootstrap.min.css \
|
|
|
|
$(SRC_PATH)/doc/style.min.css \
|
|
|
|
$(SRC_PATH)/doc/default.css \
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2011-12-19 23:28:47 +00:00
|
|
|
TXTPAGES = doc/fate.txt \
|
|
|
|
|
|
|
|
|
2012-08-09 21:37:28 +00:00
|
|
|
DOCS-$(CONFIG_HTMLPAGES) += $(HTMLPAGES)
|
|
|
|
DOCS-$(CONFIG_PODPAGES) += $(PODPAGES)
|
|
|
|
DOCS-$(CONFIG_MANPAGES) += $(MANPAGES)
|
|
|
|
DOCS-$(CONFIG_TXTPAGES) += $(TXTPAGES)
|
2012-07-12 01:41:25 +00:00
|
|
|
DOCS = $(DOCS-yes)
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2013-11-24 21:40:16 +00:00
|
|
|
all-$(CONFIG_DOC): doc
|
|
|
|
|
2012-08-11 09:58:57 +00:00
|
|
|
doc: documentation
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2012-10-29 15:26:59 +00:00
|
|
|
apidoc: doc/doxy/html
|
2011-06-06 17:03:22 +00:00
|
|
|
documentation: $(DOCS)
|
|
|
|
|
2013-05-28 19:52:33 +00:00
|
|
|
TEXIDEP = perl $(SRC_PATH)/doc/texidep.pl $(SRC_PATH) $< $@ >$(@:%=%.d)
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2011-12-19 23:28:47 +00:00
|
|
|
doc/%.txt: TAG = TXT
|
|
|
|
doc/%.txt: doc/%.texi
|
|
|
|
$(Q)$(TEXIDEP)
|
|
|
|
$(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
|
|
|
|
|
2012-03-14 19:08:50 +00:00
|
|
|
GENTEXI = format codec
|
|
|
|
GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
|
|
|
|
|
|
|
|
$(GENTEXI): TAG = GENTEXI
|
2012-07-12 01:45:00 +00:00
|
|
|
$(GENTEXI): doc/avoptions_%.texi: doc/print_options$(HOSTEXESUF)
|
2024-04-23 21:57:05 +00:00
|
|
|
$(M)doc/print_options$(HOSTEXESUF) $* > $@
|
2012-03-14 19:08:50 +00:00
|
|
|
|
2011-06-06 17:03:22 +00:00
|
|
|
doc/%.html: TAG = HTML
|
2014-09-01 02:39:35 +00:00
|
|
|
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
|
2012-03-14 19:08:50 +00:00
|
|
|
doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
|
2011-06-06 17:03:22 +00:00
|
|
|
$(Q)$(TEXIDEP)
|
2013-03-19 19:54:26 +00:00
|
|
|
$(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 $@ $<
|
2014-09-01 02:39:35 +00:00
|
|
|
endif
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
doc/%.pod: TAG = POD
|
2013-01-23 09:08:57 +00:00
|
|
|
doc/%.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI)
|
2011-06-06 17:03:22 +00:00
|
|
|
$(Q)$(TEXIDEP)
|
2013-03-19 19:54:26 +00:00
|
|
|
$(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 $< $@
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2012-11-01 12:20:44 +00:00
|
|
|
doc/%.1 doc/%.3: TAG = MAN
|
2012-11-11 11:50:44 +00:00
|
|
|
doc/%.1: doc/%.pod $(GENTEXI)
|
2015-02-01 23:20:18 +00:00
|
|
|
$(M)pod2man --section=1 --center=" " --release=" " --date=" " $< > $@
|
2012-11-11 11:50:44 +00:00
|
|
|
doc/%.3: doc/%.pod $(GENTEXI)
|
2015-02-01 23:20:18 +00:00
|
|
|
$(M)pod2man --section=3 --center=" " --release=" " --date=" " $< > $@
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2012-10-29 15:26:59 +00:00
|
|
|
$(DOCS) doc/doxy/html: | doc/
|
|
|
|
|
2017-09-29 18:09:19 +00:00
|
|
|
DOXY_INPUT = $(INSTHEADERS)
|
2017-05-03 10:51:48 +00:00
|
|
|
DOXY_INPUT_DEPS = $(addprefix $(SRC_PATH)/, $(DOXY_INPUT)) ffbuild/config.mak
|
2013-12-16 08:30:17 +00:00
|
|
|
|
2014-07-07 22:24:49 +00:00
|
|
|
doc/doxy/html: TAG = DOXY
|
2015-12-20 21:20:57 +00:00
|
|
|
doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(SRC_PATH)/doc/doxy-wrapper.sh $(DOXY_INPUT_DEPS)
|
2021-04-24 12:52:27 +00:00
|
|
|
$(M)$(SRC_PATH)/doc/doxy-wrapper.sh $$PWD/doc/doxy $(SRC_PATH) doc/Doxyfile $(DOXYGEN) $(DOXY_INPUT);
|
2011-06-28 17:45:13 +00:00
|
|
|
|
2013-09-06 04:10:48 +00:00
|
|
|
install-doc: install-html install-man
|
|
|
|
|
2013-09-06 04:08:31 +00:00
|
|
|
install-html:
|
2013-09-01 22:00:06 +00:00
|
|
|
|
2012-07-12 01:41:25 +00:00
|
|
|
install-man:
|
|
|
|
|
2013-09-01 22:00:06 +00:00
|
|
|
ifdef CONFIG_HTMLPAGES
|
2013-11-24 21:40:16 +00:00
|
|
|
install-progs-$(CONFIG_DOC): install-html
|
2013-08-28 08:30:14 +00:00
|
|
|
|
2013-09-06 04:08:31 +00:00
|
|
|
install-html: $(HTMLPAGES)
|
2013-08-28 08:30:14 +00:00
|
|
|
$(Q)mkdir -p "$(DOCDIR)"
|
|
|
|
$(INSTALL) -m 644 $(HTMLPAGES) "$(DOCDIR)"
|
2013-09-01 22:00:06 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_MANPAGES
|
2013-11-24 21:40:16 +00:00
|
|
|
install-progs-$(CONFIG_DOC): install-man
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
install-man: $(MANPAGES)
|
|
|
|
$(Q)mkdir -p "$(MANDIR)/man1"
|
2013-05-18 13:10:21 +00:00
|
|
|
$(INSTALL) -m 644 $(MANPAGES1) "$(MANDIR)/man1"
|
|
|
|
$(Q)mkdir -p "$(MANDIR)/man3"
|
|
|
|
$(INSTALL) -m 644 $(MANPAGES3) "$(MANDIR)/man3"
|
2012-07-12 01:41:25 +00:00
|
|
|
endif
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2013-09-06 04:10:48 +00:00
|
|
|
uninstall: uninstall-doc
|
|
|
|
|
|
|
|
uninstall-doc: uninstall-html uninstall-man
|
2013-08-28 08:30:14 +00:00
|
|
|
|
2013-09-06 04:08:31 +00:00
|
|
|
uninstall-html:
|
2013-08-28 08:30:14 +00:00
|
|
|
$(RM) -r "$(DOCDIR)"
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
uninstall-man:
|
2013-11-25 23:05:38 +00:00
|
|
|
$(RM) $(addprefix "$(MANDIR)/man1/",$(AVPROGS-yes:%=%.1) $(AVPROGS-yes:%=%-all.1) $(COMPONENTS-yes:%=%.1))
|
2013-10-24 19:14:55 +00:00
|
|
|
$(RM) $(addprefix "$(MANDIR)/man3/",$(LIBRARIES-yes:%=%.3))
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2013-01-19 03:48:59 +00:00
|
|
|
clean:: docclean
|
2012-12-17 12:39:53 +00:00
|
|
|
|
2013-03-19 19:54:26 +00:00
|
|
|
distclean:: docclean
|
|
|
|
$(RM) doc/config.texi
|
|
|
|
|
2017-09-29 18:09:19 +00:00
|
|
|
docclean::
|
2013-11-28 12:56:08 +00:00
|
|
|
$(RM) $(CLEANSUFFIXES:%=doc/%)
|
2013-11-26 00:31:00 +00:00
|
|
|
$(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 doc/*.3 doc/avoptions_*.texi
|
2012-10-29 15:26:59 +00:00
|
|
|
$(RM) -r doc/doxy/html
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
-include $(wildcard $(DOCS:%=%.d))
|
|
|
|
|
2012-11-03 13:47:50 +00:00
|
|
|
.PHONY: apidoc doc documentation
|