1#
2# %CopyrightBegin%
3#
4# Copyright Ericsson AB 1996-2020. All Rights Reserved.
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10#     http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# %CopyrightEnd%
19#
20#
21include $(ERL_TOP)/make/target.mk
22include $(ERL_TOP)/make/$(TARGET)/otp.mk
23
24# ----------------------------------------------------
25# Application version
26# ----------------------------------------------------
27include $(ERL_TOP)/erts/vsn.mk
28#VSN=$(SYSTEM_VSN)
29
30APPLICATION=otp-system-documentation
31XMLDIR := $(XMLDIR)/general_info
32# ----------------------------------------------------
33# Release directory specification
34# ----------------------------------------------------
35RELSYSDIR = "$(RELEASE_PATH)/doc/general_info"
36
37# ----------------------------------------------------
38# Target Specs
39# ----------------------------------------------------
40XML_PART_FILES = part.xml
41
42include xmlfiles.mk
43
44XML_CHAPTER_FILES=$(GENERAL_INFO_CHAPTER_FILES)
45
46# ----------------------------------------------------
47
48TOPDOCDIR=..
49
50BOOK_FILES = book.xml
51
52GIF_FILES =
53
54XML_FILES = \
55	$(BOOK_FILES) $(XML_CHAPTER_FILES) \
56	$(XML_PART_FILES)
57
58XML_GEN_FILES=$(GENERAL_INFO_CHAPTER_GEN_FILES:%=$(XMLDIR)/%)
59
60# ----------------------------------------------------
61
62HTMLDIR = ../html/general_info
63
64HTML_UG_FILE = $(HTMLDIR)/users_guide.html
65
66# ----------------------------------------------------
67# FLAGS
68# ----------------------------------------------------
69XML_FLAGS +=
70DVIPS_FLAGS +=
71
72# ----------------------------------------------------
73# Targets
74# ----------------------------------------------------
75
76DOC_TARGETS?=html
77
78docs: $(DOC_TARGETS)
79
80local_docs: PDFDIR=../../pdf
81
82html: $(GIF_FILES) $(HTML_UG_FILE)
83
84debug opt:
85
86DEPRECATIONS_SCRIPT = $(ERL_TOP)/lib/stdlib/scripts/update_deprecations
87
88$(XMLDIR)/deprecations.xml: DEPRECATIONS $(wildcard deprecations_*.inc)
89	$(gen_verbose)escript $(DEPRECATIONS_SCRIPT) make_xml deprecations $(ERL_TOP) $@
90
91$(XMLDIR)/scheduled_for_removal.xml: DEPRECATIONS $(wildcard scheduled_*.inc)
92	$(gen_verbose)escript $(DEPRECATIONS_SCRIPT) make_xml scheduled_for_removal $(ERL_TOP) $@
93
94$(XMLDIR)/removed.xml: DEPRECATIONS $(wildcard removed_*.inc)
95	$(gen_verbose)escript $(DEPRECATIONS_SCRIPT) make_xml removed $(ERL_TOP) $@
96
97clean clean_docs:
98	rm -f $(XMLDIR)/*.xml
99	rm -f $(HTMLDIR)/*.gif $(HTMLDIR)/*.html
100	rm -f $(TOP_PDF_FILE) $(TOP_PDF_FILE:%.pdf=%.fo)
101	rm -f errs core *~
102
103# ----------------------------------------------------
104# Release Target
105# ----------------------------------------------------
106include $(ERL_TOP)/make/otp_release_targets.mk
107
108release_html_spec: html
109	$(INSTALL_DIR) "$(RELSYSDIR)"
110	$(INSTALL_DATA) $(GIF_FILES) $(EXTRA_FILES) $(HTMLDIR)/*.html \
111		$(RELSYSDIR)
112
113release_docs_spec: $(DOC_TARGETS:%=release_%_spec)
114
115release_spec:
116