yading@10
|
1 LIBRARIES-$(CONFIG_AVUTIL) += libavutil
|
yading@10
|
2 LIBRARIES-$(CONFIG_SWSCALE) += libswscale
|
yading@10
|
3 LIBRARIES-$(CONFIG_SWRESAMPLE) += libswresample
|
yading@10
|
4 LIBRARIES-$(CONFIG_AVCODEC) += libavcodec
|
yading@10
|
5 LIBRARIES-$(CONFIG_AVFORMAT) += libavformat
|
yading@10
|
6 LIBRARIES-$(CONFIG_AVDEVICE) += libavdevice
|
yading@10
|
7 LIBRARIES-$(CONFIG_AVFILTER) += libavfilter
|
yading@10
|
8
|
yading@10
|
9 COMPONENTS-$(CONFIG_AVUTIL) += ffmpeg-utils
|
yading@10
|
10 COMPONENTS-$(CONFIG_SWSCALE) += ffmpeg-scaler
|
yading@10
|
11 COMPONENTS-$(CONFIG_SWRESAMPLE) += ffmpeg-resampler
|
yading@10
|
12 COMPONENTS-$(CONFIG_AVCODEC) += ffmpeg-codecs ffmpeg-bitstream-filters
|
yading@10
|
13 COMPONENTS-$(CONFIG_AVFORMAT) += ffmpeg-formats ffmpeg-protocols
|
yading@10
|
14 COMPONENTS-$(CONFIG_AVDEVICE) += ffmpeg-devices
|
yading@10
|
15 COMPONENTS-$(CONFIG_AVFILTER) += ffmpeg-filters
|
yading@10
|
16
|
yading@10
|
17 MANPAGES = $(PROGS-yes:%=doc/%.1) $(PROGS-yes:%=doc/%-all.1) $(COMPONENTS-yes:%=doc/%.1) $(LIBRARIES-yes:%=doc/%.3)
|
yading@10
|
18 PODPAGES = $(PROGS-yes:%=doc/%.pod) $(PROGS-yes:%=doc/%-all.pod) $(COMPONENTS-yes:%=doc/%.pod) $(LIBRARIES-yes:%=doc/%.pod)
|
yading@10
|
19 HTMLPAGES = $(PROGS-yes:%=doc/%.html) $(PROGS-yes:%=doc/%-all.html) $(COMPONENTS-yes:%=doc/%.html) $(LIBRARIES-yes:%=doc/%.html) \
|
yading@10
|
20 doc/developer.html \
|
yading@10
|
21 doc/faq.html \
|
yading@10
|
22 doc/fate.html \
|
yading@10
|
23 doc/general.html \
|
yading@10
|
24 doc/git-howto.html \
|
yading@10
|
25 doc/nut.html \
|
yading@10
|
26 doc/platform.html \
|
yading@10
|
27
|
yading@10
|
28 TXTPAGES = doc/fate.txt \
|
yading@10
|
29
|
yading@10
|
30
|
yading@10
|
31 DOCS-$(CONFIG_HTMLPAGES) += $(HTMLPAGES)
|
yading@10
|
32 DOCS-$(CONFIG_PODPAGES) += $(PODPAGES)
|
yading@10
|
33 DOCS-$(CONFIG_MANPAGES) += $(MANPAGES)
|
yading@10
|
34 DOCS-$(CONFIG_TXTPAGES) += $(TXTPAGES)
|
yading@10
|
35 DOCS = $(DOCS-yes)
|
yading@10
|
36
|
yading@10
|
37 all-$(CONFIG_DOC): doc
|
yading@10
|
38
|
yading@10
|
39 doc: documentation
|
yading@10
|
40
|
yading@10
|
41 apidoc: doc/doxy/html
|
yading@10
|
42 documentation: $(DOCS)
|
yading@10
|
43
|
yading@10
|
44 TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
|
yading@10
|
45
|
yading@10
|
46 doc/%.txt: TAG = TXT
|
yading@10
|
47 doc/%.txt: doc/%.texi
|
yading@10
|
48 $(Q)$(TEXIDEP)
|
yading@10
|
49 $(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
|
yading@10
|
50
|
yading@10
|
51 GENTEXI = format codec
|
yading@10
|
52 GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
|
yading@10
|
53
|
yading@10
|
54 $(GENTEXI): TAG = GENTEXI
|
yading@10
|
55 $(GENTEXI): doc/avoptions_%.texi: doc/print_options$(HOSTEXESUF)
|
yading@10
|
56 $(M)doc/print_options $* > $@
|
yading@10
|
57
|
yading@10
|
58 doc/%.html: TAG = HTML
|
yading@10
|
59 doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
|
yading@10
|
60 $(Q)$(TEXIDEP)
|
yading@10
|
61 $(M)texi2html -I doc -monolithic --D=config-not-all --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
|
yading@10
|
62
|
yading@10
|
63 doc/%-all.html: TAG = HTML
|
yading@10
|
64 doc/%-all.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
|
yading@10
|
65 $(Q)$(TEXIDEP)
|
yading@10
|
66 $(M)texi2html -I doc -monolithic --D=config-all --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
|
yading@10
|
67
|
yading@10
|
68 doc/%.pod: TAG = POD
|
yading@10
|
69 doc/%.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI)
|
yading@10
|
70 $(Q)$(TEXIDEP)
|
yading@10
|
71 $(M)perl $(SRC_PATH)/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc $< $@
|
yading@10
|
72
|
yading@10
|
73 doc/%-all.pod: TAG = POD
|
yading@10
|
74 doc/%-all.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI)
|
yading@10
|
75 $(Q)$(TEXIDEP)
|
yading@10
|
76 $(M)perl $(SRC_PATH)/doc/texi2pod.pl -Dconfig-all=yes -Idoc $< $@
|
yading@10
|
77
|
yading@10
|
78 doc/%.1 doc/%.3: TAG = MAN
|
yading@10
|
79 doc/%.1: doc/%.pod $(GENTEXI)
|
yading@10
|
80 $(M)pod2man --section=1 --center=" " --release=" " $< > $@
|
yading@10
|
81 doc/%.3: doc/%.pod $(GENTEXI)
|
yading@10
|
82 $(M)pod2man --section=3 --center=" " --release=" " $< > $@
|
yading@10
|
83
|
yading@10
|
84 $(DOCS) doc/doxy/html: | doc/
|
yading@10
|
85
|
yading@10
|
86 doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS)
|
yading@10
|
87 $(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $^
|
yading@10
|
88
|
yading@10
|
89 install-man:
|
yading@10
|
90
|
yading@10
|
91 ifdef CONFIG_MANPAGES
|
yading@10
|
92 install-progs-$(CONFIG_DOC): install-man
|
yading@10
|
93
|
yading@10
|
94 install-man: $(MANPAGES)
|
yading@10
|
95 $(Q)mkdir -p "$(MANDIR)/man1"
|
yading@10
|
96 $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
|
yading@10
|
97 endif
|
yading@10
|
98
|
yading@10
|
99 uninstall: uninstall-man
|
yading@10
|
100
|
yading@10
|
101 uninstall-man:
|
yading@10
|
102 $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
|
yading@10
|
103
|
yading@10
|
104 clean:: docclean
|
yading@10
|
105
|
yading@10
|
106 distclean:: docclean
|
yading@10
|
107 $(RM) doc/config.texi
|
yading@10
|
108
|
yading@10
|
109 docclean:
|
yading@10
|
110 $(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 doc/*.3 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
|
yading@10
|
111 $(RM) -r doc/doxy/html
|
yading@10
|
112
|
yading@10
|
113 -include $(wildcard $(DOCS:%=%.d))
|
yading@10
|
114
|
yading@10
|
115 .PHONY: apidoc doc documentation
|