blob: cfe57edd9bb0147865f9a002ad12c0553eb7ef4e [file] [log] [blame]
John Koleszar0ea50ce2010-05-18 11:58:33 -04001##
John Koleszarc2140b82010-09-09 08:16:39 -04002## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar0ea50ce2010-05-18 11:58:33 -04003##
John Koleszar94c52e42010-06-18 12:39:21 -04004## Use of this source code is governed by a BSD-style license
John Koleszar09202d82010-06-04 16:19:40 -04005## 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
John Koleszar94c52e42010-06-18 12:39:21 -04007## in the file PATENTS. All contributing project authors may
John Koleszar09202d82010-06-04 16:19:40 -04008## be found in the AUTHORS file in the root of the source tree.
John Koleszar0ea50ce2010-05-18 11:58:33 -04009##
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
John Koleszar0ea50ce2010-05-18 11:58:33 -040024TXT_DOX = $(call enabled,TXT_DOX)
25
26%.dox: %.txt
27 @echo " [DOXY] $@"
28 @$(SRC_PATH_BARE)/examples/gen_example_doxy.php \
29 $(@:.dox=) "$($@.DESC)" > $@ < $<
30
31
32EXAMPLE_PATH += $(SRC_PATH_BARE) #for CHANGELOG, README, etc
33
James Zern17717222011-02-24 15:11:05 -080034doxyfile: $(if $(findstring examples, $(ALL_TARGETS)),examples.doxy)
35doxyfile: libs.doxy_template libs.doxy
John Koleszar0ea50ce2010-05-18 11:58:33 -040036 @echo " [CREATE] $@"
37 @cat $^ > $@
38 @echo "STRIP_FROM_PATH += $(SRC_PATH_BARE) $(BUILD_ROOT)" >> $@
39 @echo "INPUT += $(addprefix $(SRC_PATH_BARE)/,$(CODEC_DOX))" >> $@;
40 @echo "INPUT += $(TXT_DOX)" >> $@;
41 @echo "EXAMPLE_PATH += $(EXAMPLE_PATH)" >> $@
42
43CLEAN-OBJS += doxyfile $(wildcard docs/html/*)
44docs/html/index.html: doxyfile $(CODEC_DOX) $(TXT_DOX)
45 @echo " [DOXYGEN] $<"
46 @doxygen $<
47DOCS-yes += docs/html/index.html
48
John Koleszaree8bcb12010-05-24 10:16:44 -040049DIST-DOCS-yes = $(wildcard docs/html/*)
50DIST-DOCS-$(CONFIG_CODEC_SRCS) += $(addprefix src/,$(CODEC_DOX))
51DIST-DOCS-$(CONFIG_CODEC_SRCS) += src/libs.doxy_template
52DIST-DOCS-yes += CHANGELOG
53DIST-DOCS-yes += README