2012-11-04 11:42:47 +00:00
|
|
|
DOCLIBS-$(CONFIG_AVUTIL) += libavutil
|
2012-11-13 22:49:09 +00:00
|
|
|
DOCLIBS-$(CONFIG_SWSCALE) += libswscale
|
2012-11-02 11:24:04 +00:00
|
|
|
DOCLIBS-$(CONFIG_SWRESAMPLE) += libswresample
|
2012-11-07 22:11:02 +00:00
|
|
|
DOCLIBS-$(CONFIG_AVCODEC) += libavcodec
|
2012-11-18 12:39:18 +00:00
|
|
|
DOCLIBS-$(CONFIG_AVFORMAT) += libavformat
|
2012-11-26 22:38:32 +00:00
|
|
|
DOCLIBS-$(CONFIG_AVDEVICE) += libavdevice
|
2012-11-04 11:12:56 +00:00
|
|
|
DOCLIBS-$(CONFIG_AVFILTER) += libavfilter
|
2012-11-01 12:20:44 +00:00
|
|
|
|
2012-11-26 22:58:40 +00:00
|
|
|
COMPONENTS=$(PROGS-yes) ffmpeg-bitstream-filters ffmpeg-codecs ffmpeg-devices ffmpeg-filters ffmpeg-protocols ffmpeg-resampler ffmpeg-scaler ffmpeg-formats ffmpeg-utils
|
2012-11-18 12:00:11 +00:00
|
|
|
|
|
|
|
MANPAGES = $(COMPONENTS:%=doc/%.1) $(DOCLIBS-yes:%=doc/%.3)
|
|
|
|
PODPAGES = $(COMPONENTS:%=doc/%.pod) $(DOCLIBS-yes:%=doc/%.pod)
|
|
|
|
HTMLPAGES = $(COMPONENTS:%=doc/%.html) $(DOCLIBS-yes:%=doc/%.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 \
|
2011-12-13 22:50:20 +00:00
|
|
|
doc/nut.html \
|
2011-12-03 20:25:04 +00:00
|
|
|
doc/platform.html \
|
2012-05-03 13:14:14 +00:00
|
|
|
doc/syntax.html \
|
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
|
|
|
|
2012-08-11 09:58:57 +00:00
|
|
|
all-$(CONFIG_DOC): doc
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2011-12-19 23:27:22 +00:00
|
|
|
TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.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)
|
2012-03-14 19:08:50 +00:00
|
|
|
$(M)doc/print_options $* > $@
|
|
|
|
|
2011-06-06 17:03:22 +00:00
|
|
|
doc/%.html: TAG = HTML
|
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)
|
2012-03-20 10:54:02 +00:00
|
|
|
$(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
doc/%.pod: TAG = POD
|
2012-03-14 19:08:50 +00:00
|
|
|
doc/%.pod: doc/%.texi $(GENTEXI)
|
2011-06-06 17:03:22 +00:00
|
|
|
$(Q)$(TEXIDEP)
|
2012-08-10 09:49:27 +00:00
|
|
|
$(M)perl $(SRC_PATH)/doc/texi2pod.pl -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)
|
2011-06-06 17:03:22 +00:00
|
|
|
$(M)pod2man --section=1 --center=" " --release=" " $< > $@
|
2012-11-11 11:50:44 +00:00
|
|
|
doc/%.3: doc/%.pod $(GENTEXI)
|
|
|
|
$(M)pod2man --section=3 --center=" " --release=" " $< > $@
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2012-10-29 15:26:59 +00: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 17:45:13 +00:00
|
|
|
|
2012-07-12 01:41:25 +00:00
|
|
|
install-man:
|
|
|
|
|
2012-08-09 21:37:28 +00:00
|
|
|
ifdef CONFIG_MANPAGES
|
2011-06-06 17:03:22 +00:00
|
|
|
install-progs-$(CONFIG_DOC): install-man
|
|
|
|
|
|
|
|
install-man: $(MANPAGES)
|
|
|
|
$(Q)mkdir -p "$(MANDIR)/man1"
|
|
|
|
$(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
|
2012-07-12 01:41:25 +00:00
|
|
|
endif
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
uninstall: uninstall-man
|
|
|
|
|
|
|
|
uninstall-man:
|
|
|
|
$(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
|
|
|
|
|
|
|
|
clean::
|
2012-11-06 11:23:13 +00:00
|
|
|
$(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 doc/*.3 $(CLEANSUFFIXES:%=doc/%) 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
|