2012-11-29 00:13:28 +01: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 13:20:44 +01:00
|
|
|
|
2012-11-29 00:13:28 +01: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 13:00:11 +01:00
|
|
|
|
2013-11-26 00:05:38 +01:00
|
|
|
MANPAGES1 = $(AVPROGS-yes:%=doc/%.1) $(AVPROGS-yes:%=doc/%-all.1) $(COMPONENTS-yes:%=doc/%.1)
|
2013-05-18 15:10:21 +02:00
|
|
|
MANPAGES3 = $(LIBRARIES-yes:%=doc/%.3)
|
|
|
|
MANPAGES = $(MANPAGES1) $(MANPAGES3)
|
2013-11-26 00:05:38 +01: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) \
|
2011-12-07 21:49:53 +01:00
|
|
|
doc/developer.html \
|
|
|
|
doc/faq.html \
|
2011-12-02 01:33:07 +01:00
|
|
|
doc/fate.html \
|
2011-12-07 21:49:53 +01:00
|
|
|
doc/general.html \
|
2011-12-03 18:06:14 +01:00
|
|
|
doc/git-howto.html \
|
2011-12-13 23:50:20 +01:00
|
|
|
doc/nut.html \
|
2011-12-03 21:25:04 +01:00
|
|
|
doc/platform.html \
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2011-12-20 00:28:47 +01:00
|
|
|
TXTPAGES = doc/fate.txt \
|
|
|
|
|
|
|
|
|
2012-08-09 23:37:28 +02:00
|
|
|
DOCS-$(CONFIG_HTMLPAGES) += $(HTMLPAGES)
|
|
|
|
DOCS-$(CONFIG_PODPAGES) += $(PODPAGES)
|
|
|
|
DOCS-$(CONFIG_MANPAGES) += $(MANPAGES)
|
|
|
|
DOCS-$(CONFIG_TXTPAGES) += $(TXTPAGES)
|
2012-07-12 03:41:25 +02:00
|
|
|
DOCS = $(DOCS-yes)
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2015-08-15 17:59:17 +02:00
|
|
|
DOC_EXAMPLES-$(CONFIG_AVIO_DIR_CMD_EXAMPLE) += avio_dir_cmd
|
2014-01-26 18:30:06 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_AVIO_READING_EXAMPLE) += avio_reading
|
2014-09-02 03:46:22 +02:00
|
|
|
DOC_EXAMPLES-$(CONFIG_DECODING_ENCODING_EXAMPLE) += decoding_encoding
|
2013-11-28 13:55:34 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_DEMUXING_DECODING_EXAMPLE) += demuxing_decoding
|
2014-07-16 16:42:42 +02:00
|
|
|
DOC_EXAMPLES-$(CONFIG_EXTRACT_MVS_EXAMPLE) += extract_mvs
|
2014-02-25 19:24:16 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_FILTER_AUDIO_EXAMPLE) += filter_audio
|
2013-11-28 13:55:34 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_FILTERING_AUDIO_EXAMPLE) += filtering_audio
|
|
|
|
DOC_EXAMPLES-$(CONFIG_FILTERING_VIDEO_EXAMPLE) += filtering_video
|
2016-09-30 19:35:28 +02:00
|
|
|
DOC_EXAMPLES-$(CONFIG_HTTP_MULTICLIENT_EXAMPLE) += http_multiclient
|
2013-11-28 13:55:34 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_METADATA_EXAMPLE) += metadata
|
2013-11-28 14:10:34 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_MUXING_EXAMPLE) += muxing
|
2015-03-01 00:30:20 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_QSVDEC_EXAMPLE) += qsvdec
|
2014-01-19 13:45:48 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_REMUXING_EXAMPLE) += remuxing
|
2013-11-28 13:55:34 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_RESAMPLING_AUDIO_EXAMPLE) += resampling_audio
|
|
|
|
DOC_EXAMPLES-$(CONFIG_SCALING_VIDEO_EXAMPLE) += scaling_video
|
2013-11-28 14:10:34 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_TRANSCODE_AAC_EXAMPLE) += transcode_aac
|
2014-03-09 01:20:41 +01:00
|
|
|
DOC_EXAMPLES-$(CONFIG_TRANSCODING_EXAMPLE) += transcoding
|
2013-11-28 14:06:57 +01:00
|
|
|
ALL_DOC_EXAMPLES_LIST = $(DOC_EXAMPLES-) $(DOC_EXAMPLES-yes)
|
2013-11-02 17:05:28 +01:00
|
|
|
|
2013-11-28 14:10:34 +01:00
|
|
|
DOC_EXAMPLES := $(DOC_EXAMPLES-yes:%=doc/examples/%$(PROGSSUF)$(EXESUF))
|
2013-11-28 14:06:57 +01:00
|
|
|
ALL_DOC_EXAMPLES := $(ALL_DOC_EXAMPLES_LIST:%=doc/examples/%$(PROGSSUF)$(EXESUF))
|
|
|
|
ALL_DOC_EXAMPLES_G := $(ALL_DOC_EXAMPLES_LIST:%=doc/examples/%$(PROGSSUF)_g$(EXESUF))
|
2013-11-28 14:10:34 +01:00
|
|
|
PROGS += $(DOC_EXAMPLES)
|
2013-11-02 17:05:28 +01:00
|
|
|
|
2013-11-24 22:40:16 +01:00
|
|
|
all-$(CONFIG_DOC): doc
|
|
|
|
|
2012-08-11 11:58:57 +02:00
|
|
|
doc: documentation
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2012-10-29 16:26:59 +01:00
|
|
|
apidoc: doc/doxy/html
|
2011-06-06 19:03:22 +02:00
|
|
|
documentation: $(DOCS)
|
|
|
|
|
2013-11-02 17:05:28 +01:00
|
|
|
examples: $(DOC_EXAMPLES)
|
|
|
|
|
2013-05-28 21:52:33 +02:00
|
|
|
TEXIDEP = perl $(SRC_PATH)/doc/texidep.pl $(SRC_PATH) $< $@ >$(@:%=%.d)
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2011-12-20 00:28:47 +01:00
|
|
|
doc/%.txt: TAG = TXT
|
|
|
|
doc/%.txt: doc/%.texi
|
|
|
|
$(Q)$(TEXIDEP)
|
|
|
|
$(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
|
|
|
|
|
2012-03-14 20:08:50 +01:00
|
|
|
GENTEXI = format codec
|
|
|
|
GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
|
|
|
|
|
|
|
|
$(GENTEXI): TAG = GENTEXI
|
2012-07-12 03:45:00 +02:00
|
|
|
$(GENTEXI): doc/avoptions_%.texi: doc/print_options$(HOSTEXESUF)
|
2012-03-14 20:08:50 +01:00
|
|
|
$(M)doc/print_options $* > $@
|
|
|
|
|
2011-06-06 19:03:22 +02:00
|
|
|
doc/%.html: TAG = HTML
|
2014-09-01 04:39:35 +02: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 20:08:50 +01:00
|
|
|
doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
|
2011-06-06 19:03:22 +02:00
|
|
|
$(Q)$(TEXIDEP)
|
2013-03-19 20:54:26 +01: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 04:39:35 +02:00
|
|
|
endif
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
doc/%.pod: TAG = POD
|
2013-01-23 10:08:57 +01:00
|
|
|
doc/%.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI)
|
2011-06-06 19:03:22 +02:00
|
|
|
$(Q)$(TEXIDEP)
|
2013-03-19 20:54:26 +01: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 19:03:22 +02:00
|
|
|
|
2012-11-01 13:20:44 +01:00
|
|
|
doc/%.1 doc/%.3: TAG = MAN
|
2012-11-11 12:50:44 +01:00
|
|
|
doc/%.1: doc/%.pod $(GENTEXI)
|
2015-02-02 00:20:18 +01:00
|
|
|
$(M)pod2man --section=1 --center=" " --release=" " --date=" " $< > $@
|
2012-11-11 12:50:44 +01:00
|
|
|
doc/%.3: doc/%.pod $(GENTEXI)
|
2015-02-02 00:20:18 +01:00
|
|
|
$(M)pod2man --section=3 --center=" " --release=" " --date=" " $< > $@
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2012-10-29 16:26:59 +01:00
|
|
|
$(DOCS) doc/doxy/html: | doc/
|
2014-02-10 00:23:28 +01:00
|
|
|
$(DOC_EXAMPLES:%$(EXESUF)=%.o): | doc/examples
|
2013-11-02 17:05:28 +01:00
|
|
|
OBJDIRS += doc/examples
|
2012-10-29 16:26:59 +01:00
|
|
|
|
2015-12-20 22:20:57 +01:00
|
|
|
DOXY_INPUT = $(INSTHEADERS) $(DOC_EXAMPLES:%$(EXESUF)=%.c) $(LIB_EXAMPLES:%$(EXESUF)=%.c)
|
2016-07-30 03:57:49 +02:00
|
|
|
DOXY_INPUT_DEPS = $(addprefix $(SRC_PATH)/, $(DOXY_INPUT)) config.mak
|
2013-12-16 09:30:17 +01:00
|
|
|
|
2014-07-08 00:24:49 +02:00
|
|
|
doc/doxy/html: TAG = DOXY
|
2015-12-20 22:20:57 +01:00
|
|
|
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);
|
2011-06-28 19:45:13 +02:00
|
|
|
|
2013-09-06 06:10:48 +02:00
|
|
|
install-doc: install-html install-man
|
|
|
|
|
2013-09-06 06:08:31 +02:00
|
|
|
install-html:
|
2013-09-02 00:00:06 +02:00
|
|
|
|
2012-07-12 03:41:25 +02:00
|
|
|
install-man:
|
|
|
|
|
2013-09-02 00:00:06 +02:00
|
|
|
ifdef CONFIG_HTMLPAGES
|
2013-11-24 22:40:16 +01:00
|
|
|
install-progs-$(CONFIG_DOC): install-html
|
2013-08-28 10:30:14 +02:00
|
|
|
|
2013-09-06 06:08:31 +02:00
|
|
|
install-html: $(HTMLPAGES)
|
2013-08-28 10:30:14 +02:00
|
|
|
$(Q)mkdir -p "$(DOCDIR)"
|
|
|
|
$(INSTALL) -m 644 $(HTMLPAGES) "$(DOCDIR)"
|
2013-09-02 00:00:06 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_MANPAGES
|
2013-11-24 22:40:16 +01:00
|
|
|
install-progs-$(CONFIG_DOC): install-man
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
install-man: $(MANPAGES)
|
|
|
|
$(Q)mkdir -p "$(MANDIR)/man1"
|
2013-05-18 15:10:21 +02:00
|
|
|
$(INSTALL) -m 644 $(MANPAGES1) "$(MANDIR)/man1"
|
|
|
|
$(Q)mkdir -p "$(MANDIR)/man3"
|
|
|
|
$(INSTALL) -m 644 $(MANPAGES3) "$(MANDIR)/man3"
|
2012-07-12 03:41:25 +02:00
|
|
|
endif
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2013-09-06 06:10:48 +02:00
|
|
|
uninstall: uninstall-doc
|
|
|
|
|
|
|
|
uninstall-doc: uninstall-html uninstall-man
|
2013-08-28 10:30:14 +02:00
|
|
|
|
2013-09-06 06:08:31 +02:00
|
|
|
uninstall-html:
|
2013-08-28 10:30:14 +02:00
|
|
|
$(RM) -r "$(DOCDIR)"
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
uninstall-man:
|
2013-11-26 00:05:38 +01:00
|
|
|
$(RM) $(addprefix "$(MANDIR)/man1/",$(AVPROGS-yes:%=%.1) $(AVPROGS-yes:%=%-all.1) $(COMPONENTS-yes:%=%.1))
|
2013-10-24 21:14:55 +02:00
|
|
|
$(RM) $(addprefix "$(MANDIR)/man3/",$(LIBRARIES-yes:%=%.3))
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2013-01-19 04:48:59 +01:00
|
|
|
clean:: docclean
|
2012-12-17 13:39:53 +01:00
|
|
|
|
2013-03-19 20:54:26 +01:00
|
|
|
distclean:: docclean
|
|
|
|
$(RM) doc/config.texi
|
|
|
|
|
2013-11-28 13:56:08 +01:00
|
|
|
examplesclean:
|
2013-11-28 14:06:57 +01:00
|
|
|
$(RM) $(ALL_DOC_EXAMPLES) $(ALL_DOC_EXAMPLES_G)
|
2013-11-28 13:56:08 +01:00
|
|
|
$(RM) $(CLEANSUFFIXES:%=doc/examples/%)
|
|
|
|
|
|
|
|
docclean: examplesclean
|
|
|
|
$(RM) $(CLEANSUFFIXES:%=doc/%)
|
2013-11-26 01:31:00 +01:00
|
|
|
$(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 doc/*.3 doc/avoptions_*.texi
|
2012-10-29 16:26:59 +01:00
|
|
|
$(RM) -r doc/doxy/html
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
-include $(wildcard $(DOCS:%=%.d))
|
|
|
|
|
2012-11-03 14:47:50 +01:00
|
|
|
.PHONY: apidoc doc documentation
|