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-03-19 20:54:26 +01:00
|
|
|
MANPAGES = $(PROGS-yes:%=doc/%.1) $(PROGS-yes:%=doc/%-all.1) $(COMPONENTS-yes:%=doc/%.1) $(LIBRARIES-yes:%=doc/%.3)
|
|
|
|
PODPAGES = $(PROGS-yes:%=doc/%.pod) $(PROGS-yes:%=doc/%-all.pod) $(COMPONENTS-yes:%=doc/%.pod) $(LIBRARIES-yes:%=doc/%.pod)
|
|
|
|
HTMLPAGES = $(PROGS-yes:%=doc/%.html) $(PROGS-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
|
|
|
|
2012-08-11 11:58:57 +02:00
|
|
|
all-$(CONFIG_DOC): doc
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2011-12-20 00:27:22 +01:00
|
|
|
TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.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
|
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: TAG = HTML
|
|
|
|
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 $@ $<
|
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)
|
2011-06-06 19:03:22 +02:00
|
|
|
$(M)pod2man --section=1 --center=" " --release=" " $< > $@
|
2012-11-11 12:50:44 +01:00
|
|
|
doc/%.3: doc/%.pod $(GENTEXI)
|
|
|
|
$(M)pod2man --section=3 --center=" " --release=" " $< > $@
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2012-10-29 16:26:59 +01:00
|
|
|
$(DOCS) doc/doxy/html: | doc/
|
|
|
|
|
|
|
|
doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS)
|
|
|
|
$(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $^
|
2011-06-28 19:45:13 +02:00
|
|
|
|
2012-07-12 03:41:25 +02:00
|
|
|
install-man:
|
|
|
|
|
2012-08-09 23:37:28 +02:00
|
|
|
ifdef CONFIG_MANPAGES
|
2011-06-06 19:03:22 +02:00
|
|
|
install-progs-$(CONFIG_DOC): install-man
|
|
|
|
|
|
|
|
install-man: $(MANPAGES)
|
|
|
|
$(Q)mkdir -p "$(MANDIR)/man1"
|
|
|
|
$(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
|
2012-07-12 03:41:25 +02:00
|
|
|
endif
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
uninstall: uninstall-man
|
|
|
|
|
|
|
|
uninstall-man:
|
|
|
|
$(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
|
|
|
|
|
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-01-19 04:48:59 +01:00
|
|
|
docclean:
|
2012-11-06 12:23:13 +01:00
|
|
|
$(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 doc/*.3 $(CLEANSUFFIXES:%=doc/%) 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
|