1#
2# %CopyrightBegin%
3#
4# Copyright Ericsson AB 1999-2018. 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#
20include $(ERL_TOP)/make/target.mk
21
22# Make the docs target default.
23
24default: docs
25
26include $(ERL_TOP)/make/$(TARGET)/otp.mk
27
28# ----------------------------------------------------
29# Application version
30# ----------------------------------------------------
31include ../../vsn.mk
32VSN=$(RUNTIME_TOOLS_VSN)
33APPLICATION=runtime_tools
34
35# ----------------------------------------------------
36# Target Specs
37# ----------------------------------------------------
38XML_APPLICATION_FILES = ref_man.xml
39XML_REF3_FILES = \
40	dbg.xml \
41	dyntrace.xml \
42	erts_alloc_config.xml \
43	system_information.xml \
44	msacc.xml \
45	scheduler.xml
46XML_REF6_FILES = runtime_tools_app.xml
47
48XML_PART_FILES = part.xml
49XML_CHAPTER_FILES = notes.xml LTTng.xml
50
51GENERATED_XML_FILES = DTRACE.xml SYSTEMTAP.xml
52
53BOOK_FILES = book.xml
54
55XML_FILES = \
56	$(BOOK_FILES) $(XML_CHAPTER_FILES) \
57	$(XML_PART_FILES) $(XML_REF3_FILES) \
58	$(XML_REF6_FILES) $(XML_APPLICATION_FILES)
59
60XML_GEN_FILES = $(GENERATED_XML_FILES:%=$(XMLDIR)/%)
61
62IMAGE_FILES =
63
64TOP_SPECS_FILE = specs.xml
65
66# ----------------------------------------------------
67# Targets
68# ----------------------------------------------------
69
70$(XMLDIR)/%.xml: $(ERL_TOP)/HOWTO/%.md $(ERL_TOP)/make/emd2exml
71	$(ERL_TOP)/make/emd2exml $< $@
72
73# ----------------------------------------------------
74
75include $(ERL_TOP)/make/doc.mk
76