1
# ``The contents of this file are subject to the Erlang Public License,
4
# Copyright Ericsson AB 1997-2010. All Rights Reserved.
6
# The contents of this file are subject to the Erlang Public License,
2
7
# Version 1.1, (the "License"); you may not use this file except in
3
8
# compliance with the License. You should have received a copy of the
4
9
# Erlang Public License along with this software. If not, it can be
5
# retrieved via the world wide web at http://www.erlang.org/.
10
# retrieved online at http://www.erlang.org/.
7
12
# Software distributed under the License is distributed on an "AS IS"
8
13
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
9
14
# the License for the specific language governing rights and limitations
10
15
# under the License.
12
# The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13
# Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
14
# AB. All Rights Reserved.''
18
# ----------------------------------------------------
19
# Target for building only the files needed by the Book generation
20
# ----------------------------------------------------
21
#texmake: $(TEX_FILES) $(PSFIG_FILES)
23
20
# ----------------------------------------------------
24
21
# Targets for the new documentation support
25
22
# ----------------------------------------------------
24
ifneq ($(TOP_SPECS_FILE),)
25
TOP_SPECS_PARAM = --stringparam specs_file "`pwd`/$(TOP_SPECS_FILE)"
28
MOD2APP = $(ERL_TOP)/make/$(TARGET)/mod2app.xml
29
ifneq ($(wildcard $(MOD2APP)),)
30
MOD2APP_PARAM = --stringparam mod2app_file "$(MOD2APP)"
28
$(HTMLDIR)/index.html: $(XML_FILES)
34
$(HTMLDIR)/index.html: $(XML_FILES) $(SPECS_FILES)
29
35
date=`date +"%B %e %Y"`; \
30
$(XSLTPROC) --noout --stringparam outdir $(HTMLDIR) --stringparam docgen "$(DOCGEN)" --stringparam topdocdir "$(TOPDOCDIR)" \
31
--stringparam pdfdir "$(PDFDIR)" \
32
--stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude \
33
-path $(DOCGEN)/priv/docbuilder_dtd -path $(DOCGEN)/priv/dtd_html_entities $(DOCGEN)/priv/xsl/db_html.xsl book.xml
37
--stringparam outdir $(HTMLDIR) \
38
--stringparam docgen "$(DOCGEN)" \
39
--stringparam topdocdir "$(TOPDOCDIR)" \
40
--stringparam pdfdir "$(PDFDIR)" \
41
--xinclude $(TOP_SPECS_PARAM) $(MOD2APP_PARAM) \
42
--stringparam gendate "$$date" \
43
--stringparam appname "$(APPLICATION)" \
44
--stringparam appver "$(VSN)" \
45
-path $(DOCGEN)/priv/docbuilder_dtd \
46
-path $(DOCGEN)/priv/dtd_html_entities \
47
$(DOCGEN)/priv/xsl/db_html.xsl book.xml
36
50
$(HTMLDIR)/users_guide.html: $(XML_FILES)
40
54
--stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude \
41
55
-path $(DOCGEN)/priv/docbuilder_dtd -path $(DOCGEN)/priv/dtd_html_entities $(DOCGEN)/priv/xsl/db_html.xsl book.xml
45
date=`date +"%B %e %Y"`; \
46
$(XSLTPROC) --stringparam docgen "$(DOCGEN)" --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" \
47
--stringparam appver "$(VSN)" --xinclude \
48
-path $(DOCGEN)/priv/docbuilder_dtd -path $(DOCGEN)/priv/dtd_html_entities $(DOCGEN)/priv/xsl/db_pdf.xsl book.xml > $@
57
%.fo: $(XML_FILES) $(SPECS_FILES)
58
date=`date +"%B %e %Y"`; \
60
--stringparam docgen "$(DOCGEN)" \
61
--stringparam gendate "$$date" \
62
--stringparam appname "$(APPLICATION)" \
63
--stringparam appver "$(VSN)" \
64
--xinclude $(TOP_SPECS_PARAM) \
65
-path $(DOCGEN)/priv/docbuilder_dtd \
66
-path $(DOCGEN)/priv/dtd_html_entities \
67
$(DOCGEN)/priv/xsl/db_pdf.xsl book.xml > $@
69
# ------------------------------------------------------------------------
70
# The following targets just exist in the documentation directory
71
# ------------------------------------------------------------------------
74
# ----------------------------------------------------
75
# Generation of application index data
76
# ----------------------------------------------------
77
$(HTMLDIR)/$(APPLICATION).eix: $(XML_FILES)
78
date=`date +"%B %e %Y"`; \
79
$(XSLTPROC) --stringparam docgen "$(DOCGEN)" \
80
--stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude \
81
-path $(DOCGEN)/priv/docbuilder_dtd -path $(DOCGEN)/priv/dtd_html_entities $(DOCGEN)/priv/xsl/db_eix.xsl book.xml > $@
83
docs: $(HTMLDIR)/$(APPLICATION).eix
85
# ----------------------------------------------------
86
# Local documentation target for testing
87
# ----------------------------------------------------
51
88
local_docs: TOPDOCDIR=.
89
local_docs: local_copy_of_topdefs docs
91
local_html: TOPDOCDIR=.
92
local_html: local_copy_of_topdefs html
94
local_copy_of_topdefs:
53
95
$(INSTALL) $(DOCGEN)/priv/css/otp_doc.css $(HTMLDIR)
54
96
$(INSTALL) $(DOCGEN)/priv/images/erlang-logo.png $(HTMLDIR)
55
97
$(INSTALL) $(DOCGEN)/priv/images/erlang-logo.gif $(HTMLDIR)