~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to make/otp_release_targets.mk

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# ``The contents of this file are subject to the Erlang Public License,
 
1
 
2
# %CopyrightBegin%
 
3
#
 
4
# Copyright Ericsson AB 1997-2010. All Rights Reserved.
 
5
#
 
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/.
6
 
 
10
# retrieved online at http://www.erlang.org/.
 
11
#
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.
11
 
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.''
15
 
16
 
#     $Id$
17
 
 
18
 
# ----------------------------------------------------
19
 
# Target for building only the files needed by the Book generation
20
 
# ----------------------------------------------------
21
 
#texmake: $(TEX_FILES) $(PSFIG_FILES)
 
16
#
 
17
# %CopyrightEnd%
 
18
#
22
19
 
23
20
# ----------------------------------------------------
24
21
# Targets for the new documentation support
25
22
# ----------------------------------------------------
26
23
 
 
24
ifneq ($(TOP_SPECS_FILE),)
 
25
TOP_SPECS_PARAM = --stringparam specs_file "`pwd`/$(TOP_SPECS_FILE)"
 
26
endif
 
27
 
 
28
MOD2APP = $(ERL_TOP)/make/$(TARGET)/mod2app.xml
 
29
ifneq ($(wildcard $(MOD2APP)),)
 
30
MOD2APP_PARAM = --stringparam mod2app_file "$(MOD2APP)"
 
31
endif
 
32
 
27
33
ifeq ($(TOPDOC),)
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
 
36
        $(XSLTPROC) --noout \
 
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
34
48
endif
35
49
 
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
42
56
 
43
 
 
44
 
%.fo: $(XML_FILES)
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 > $@
49
 
 
50
 
 
 
57
%.fo: $(XML_FILES) $(SPECS_FILES)
 
58
        date=`date +"%B %e %Y"`; \
 
59
        $(XSLTPROC) \
 
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 > $@
 
68
 
 
69
# ------------------------------------------------------------------------
 
70
# The following targets just exist in the documentation directory
 
71
# ------------------------------------------------------------------------
 
72
ifneq ($(XML_FILES),)
 
73
 
 
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 >  $@ 
 
82
 
 
83
docs: $(HTMLDIR)/$(APPLICATION).eix
 
84
 
 
85
# ----------------------------------------------------
 
86
# Local documentation target for testing 
 
87
# ----------------------------------------------------
51
88
local_docs: TOPDOCDIR=.
52
 
local_docs: docs
 
89
local_docs: local_copy_of_topdefs docs
 
90
 
 
91
local_html: TOPDOCDIR=.
 
92
local_html: local_copy_of_topdefs html
 
93
 
 
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)
59
101
                $(DOCGEN)/priv/js/flipmenu/flip_static.gif \
60
102
                $(DOCGEN)/priv/js/flipmenu/flipmenu.js $(HTMLDIR)/js/flipmenu
61
103
 
 
104
endif
62
105
 
63
106
# ----------------------------------------------------
64
107
# Standard release target
73
116
else
74
117
 
75
118
release release_docs release_tests release_html:
76
 
        $(MAKE) $(MFLAGS) RELEASE_PATH=$(TESTROOT) $(TARGET_MAKEFILE)  $@_spec
 
119
        $(MAKE) $(MFLAGS) RELEASE_PATH=$(TESTROOT) $(TARGET_MAKEFILE)  $@_spec 
77
120
 
78
121
endif