ihse@44078
|
1 #
|
ihse@44078
|
2 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
ihse@44078
|
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
ihse@44078
|
4 #
|
ihse@44078
|
5 # This code is free software; you can redistribute it and/or modify it
|
ihse@44078
|
6 # under the terms of the GNU General Public License version 2 only, as
|
ihse@44078
|
7 # published by the Free Software Foundation. Oracle designates this
|
ihse@44078
|
8 # particular file as subject to the "Classpath" exception as provided
|
ihse@44078
|
9 # by Oracle in the LICENSE file that accompanied this code.
|
ihse@44078
|
10 #
|
ihse@44078
|
11 # This code is distributed in the hope that it will be useful, but WITHOUT
|
ihse@44078
|
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
ihse@44078
|
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
ihse@44078
|
14 # version 2 for more details (a copy is included in the LICENSE file that
|
ihse@44078
|
15 # accompanied this code).
|
ihse@44078
|
16 #
|
ihse@44078
|
17 # You should have received a copy of the GNU General Public License version
|
ihse@44078
|
18 # 2 along with this work; if not, write to the Free Software Foundation,
|
ihse@44078
|
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
ihse@44078
|
20 #
|
ihse@44078
|
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
ihse@44078
|
22 # or visit www.oracle.com if you need additional information or have any
|
ihse@44078
|
23 # questions.
|
ihse@44078
|
24 #
|
ihse@44078
|
25
|
ihse@44078
|
26 default: all
|
ihse@44078
|
27
|
ihse@44078
|
28 include $(SPEC)
|
ihse@44078
|
29 include MakeBase.gmk
|
ihse@44983
|
30 include ProcessMarkdown.gmk
|
ihse@44078
|
31
|
ihse@44078
|
32 ################################################################################
|
ihse@44078
|
33 # This makefile updates the generated build html documentation.
|
ihse@44078
|
34 #
|
ihse@44078
|
35 ################################################################################
|
ihse@44078
|
36
|
ihse@44078
|
37 ifeq ($(PANDOC), )
|
ihse@44078
|
38 $(info No pandoc executable was detected by configure)
|
ihse@44078
|
39 $(error Cannot continue)
|
ihse@44078
|
40 endif
|
ihse@44078
|
41
|
ihse@45763
|
42 GLOBAL_SPECS_DEFAULT_CSS_FILE := $(JDK_TOPDIR)/make/data/docs-resources/resources/jdk-default.css
|
ihse@44078
|
43
|
ihse@44078
|
44 ################################################################################
|
ihse@44078
|
45
|
ihse@44511
|
46 DOCS_DIR := $(TOPDIR)/common/doc
|
ihse@44078
|
47
|
ihse@44983
|
48 $(eval $(call SetupProcessMarkdown, building, \
|
ihse@44983
|
49 FILES := $(DOCS_DIR)/building.md, \
|
ihse@44983
|
50 DEST := $(DOCS_DIR), \
|
ihse@44983
|
51 CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
|
ihse@45763
|
52 OPTIONS := --toc, \
|
ihse@44511
|
53 ))
|
ihse@44983
|
54 TARGETS += $(building)
|
ihse@44511
|
55
|
ihse@44983
|
56 $(eval $(call SetupProcessMarkdown, testing, \
|
ihse@44983
|
57 FILES := $(DOCS_DIR)/testing.md, \
|
ihse@44983
|
58 DEST := $(DOCS_DIR), \
|
ihse@44983
|
59 CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
|
ihse@44511
|
60 OPTIONS := --toc, \
|
ihse@44078
|
61 ))
|
ihse@44983
|
62 TARGETS += $(testing)
|
ihse@44078
|
63
|
ihse@44078
|
64 ################################################################################
|
ihse@44078
|
65
|
ihse@44078
|
66 $(eval $(call IncludeCustomExtension, , UpdateBuildDocs.gmk))
|
ihse@44078
|
67
|
ihse@44078
|
68 ################################################################################
|
ihse@44078
|
69
|
ihse@44078
|
70 all: $(TARGETS)
|
ihse@44078
|
71
|
ihse@44078
|
72 .PHONY: all default
|