blob: 0dfc65b75f4eee5af2913f0793962bd3b509d75c [file] [log] [blame]
John Koleszar0ea50ce2010-05-18 11:58:33 -04001##
Yaowu Xu5e53c432016-09-23 15:37:36 -07002## Copyright (c) 2016, Alliance for Open Media. All rights reserved
John Koleszar0ea50ce2010-05-18 11:58:33 -04003##
Yaowu Xu5e53c432016-09-23 15:37:36 -07004## This source code is subject to the terms of the BSD 2 Clause License and
5## the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6## was not distributed with this source code in the LICENSE file, you can
7## obtain it at www.aomedia.org/license/software. If the Alliance for Open
8## Media Patent License 1.0 was not distributed with this source code in the
9## PATENTS file, you can obtain it at www.aomedia.org/license/patent.
John Koleszar0ea50ce2010-05-18 11:58:33 -040010##
11
12
Yaowu Xu5e53c432016-09-23 15:37:36 -070013
John Koleszar0ea50ce2010-05-18 11:58:33 -040014INSTALL_MAPS += docs/% docs/%
15INSTALL_MAPS += src/% %
16INSTALL_MAPS += % %
17
18# Static documentation authored in doxygen
19CODEC_DOX := mainpage.dox \
20 keywords.dox \
21 usage.dox \
22 usage_cx.dox \
23 usage_dx.dox \
24
25# Other doxy files sourced in Markdown
John Koleszar0ea50ce2010-05-18 11:58:33 -040026TXT_DOX = $(call enabled,TXT_DOX)
27
John Koleszar0ea50ce2010-05-18 11:58:33 -040028EXAMPLE_PATH += $(SRC_PATH_BARE) #for CHANGELOG, README, etc
James Zern354c5662014-02-14 19:38:20 -080029EXAMPLE_PATH += $(SRC_PATH_BARE)/examples
John Koleszar0ea50ce2010-05-18 11:58:33 -040030
James Zern354c5662014-02-14 19:38:20 -080031doxyfile: $(if $(findstring examples, $(ALL_TARGETS)),examples.doxy)
James Zern17717222011-02-24 15:11:05 -080032doxyfile: libs.doxy_template libs.doxy
John Koleszar0ea50ce2010-05-18 11:58:33 -040033 @echo " [CREATE] $@"
34 @cat $^ > $@
35 @echo "STRIP_FROM_PATH += $(SRC_PATH_BARE) $(BUILD_ROOT)" >> $@
36 @echo "INPUT += $(addprefix $(SRC_PATH_BARE)/,$(CODEC_DOX))" >> $@;
37 @echo "INPUT += $(TXT_DOX)" >> $@;
38 @echo "EXAMPLE_PATH += $(EXAMPLE_PATH)" >> $@
39
40CLEAN-OBJS += doxyfile $(wildcard docs/html/*)
41docs/html/index.html: doxyfile $(CODEC_DOX) $(TXT_DOX)
42 @echo " [DOXYGEN] $<"
43 @doxygen $<
44DOCS-yes += docs/html/index.html
45
John Koleszaree8bcb12010-05-24 10:16:44 -040046DIST-DOCS-yes = $(wildcard docs/html/*)
47DIST-DOCS-$(CONFIG_CODEC_SRCS) += $(addprefix src/,$(CODEC_DOX))
48DIST-DOCS-$(CONFIG_CODEC_SRCS) += src/libs.doxy_template
49DIST-DOCS-yes += CHANGELOG
50DIST-DOCS-yes += README