blob: 28df9d262d5897a144fef1b11a466828b22b2af4 [file] [log] [blame]
Andreas Huber90d3ed92010-05-25 11:35:35 -07001##
Andreas Huberf71323e2010-09-15 15:12:42 -07002## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
Andreas Huber90d3ed92010-05-25 11:35:35 -07003##
Andreas Huberf71323e2010-09-15 15:12:42 -07004## Use of this source code is governed by a BSD-style license
5## that can be found in the LICENSE file in the root of the source
6## tree. An additional intellectual property rights grant can be found
7## in the file PATENTS. All contributing project authors may
8## be found in the AUTHORS file in the root of the source tree.
Andreas Huber90d3ed92010-05-25 11:35:35 -07009##
10
11
12INSTALL_MAPS += docs/% docs/%
13INSTALL_MAPS += src/% %
14INSTALL_MAPS += % %
15
16# Static documentation authored in doxygen
17CODEC_DOX := mainpage.dox \
18 keywords.dox \
19 usage.dox \
20 usage_cx.dox \
21 usage_dx.dox \
22
23# Other doxy files sourced in Markdown
24TXT_DOX-$(CONFIG_VP8) += vp8_api1_migration.dox
25vp8_api1_migration.dox.DESC = VP8 API 1.x Migration
26
27TXT_DOX = $(call enabled,TXT_DOX)
28
29%.dox: %.txt
30 @echo " [DOXY] $@"
31 @$(SRC_PATH_BARE)/examples/gen_example_doxy.php \
32 $(@:.dox=) "$($@.DESC)" > $@ < $<
33
34
35EXAMPLE_PATH += $(SRC_PATH_BARE) #for CHANGELOG, README, etc
36
37doxyfile: libs.doxy_template libs.doxy examples.doxy
38 @echo " [CREATE] $@"
39 @cat $^ > $@
40 @echo "STRIP_FROM_PATH += $(SRC_PATH_BARE) $(BUILD_ROOT)" >> $@
41 @echo "INPUT += $(addprefix $(SRC_PATH_BARE)/,$(CODEC_DOX))" >> $@;
42 @echo "INPUT += $(TXT_DOX)" >> $@;
43 @echo "EXAMPLE_PATH += $(EXAMPLE_PATH)" >> $@
44
45CLEAN-OBJS += doxyfile $(wildcard docs/html/*)
46docs/html/index.html: doxyfile $(CODEC_DOX) $(TXT_DOX)
47 @echo " [DOXYGEN] $<"
48 @doxygen $<
49DOCS-yes += docs/html/index.html
50
Andreas Huberf71323e2010-09-15 15:12:42 -070051DIST-DOCS-yes = $(wildcard docs/html/*)
52DIST-DOCS-$(CONFIG_CODEC_SRCS) += $(addprefix src/,$(CODEC_DOX))
53DIST-DOCS-$(CONFIG_CODEC_SRCS) += src/libs.doxy_template
54DIST-DOCS-yes += CHANGELOG
55DIST-DOCS-yes += README