~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to lib/diameter/make/rules.mk.in

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#-*-makefile-*-   ; force emacs to enter makefile-mode
 
2
# ----------------------------------------------------
 
3
# %CopyrightBegin%
 
4
#
 
5
# Copyright Ericsson AB 2009-2011. All Rights Reserved.
 
6
#
 
7
# The contents of this file are subject to the Erlang Public License,
 
8
# Version 1.1, (the "License"); you may not use this file except in
 
9
# compliance with the License. You should have received a copy of the
 
10
# Erlang Public License along with this software. If not, it can be
 
11
# retrieved online at http://www.erlang.org/.
 
12
#
 
13
# Software distributed under the License is distributed on an "AS IS"
 
14
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
15
# the License for the specific language governing rights and limitations
 
16
# under the License.
 
17
#
 
18
# %CopyrightEnd%
 
19
 
 
20
.SUFFIXES: .erl .beam .yrl .hrl .xml .xmlsrc .html \
 
21
        .3 .1 .pdf .fo .el .elc
 
22
 
 
23
# ----------------------------------------------------
 
24
#       Common macros
 
25
# ----------------------------------------------------
 
26
DEFAULT_TARGETS = opt debug release release_docs clean docs
 
27
 
 
28
 
 
29
# Slash separated list of return values from $(origin VAR)
 
30
# that are untrusted - set default in this file instead.
 
31
# The list is not space separated since some return values
 
32
# contain space, and we want to use $(findstring ...) to
 
33
# search the list.
 
34
DUBIOUS_ORIGINS = /undefined/environment/
 
35
 
 
36
 
 
37
# # ----------------------------------------------------
 
38
# # TARGET definition
 
39
# # ----------------------------------------------------
 
40
# # TARGET = @TARGET@
 
41
# ifneq ($(OVERRIDE_TARGET),)
 
42
# ifneq ($(TARGET), $(OVERRIDE_TARGET))
 
43
# $(warning overriding $$(TARGET) = \
 
44
#         "$(TARGET)" \
 
45
#         with \
 
46
#         $$(OVERRIDE_TARGET) = \
 
47
#         "$(OVERRIDE_TARGET)")
 
48
# override TARGET := $(OVERRIDE_TARGET)
 
49
# endif
 
50
# endif
 
51
 
52
 
 
53
# ----------------------------------------------------
 
54
#       Command macros
 
55
# ----------------------------------------------------
 
56
PREFIX          = @prefix@
 
57
INSTALL         = @INSTALL@
 
58
INSTALL_DIR     = @INSTALL_DIR@
 
59
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
60
INSTALL_SCRIPT  = @INSTALL_SCRIPT@
 
61
INSTALL_DATA    = @INSTALL_DATA@
 
62
 
 
63
 
 
64
# ----------------------------------------------------
 
65
#       Erlang language section
 
66
# ----------------------------------------------------
 
67
ERL_ROOT_DIR = @ERLANG_ROOT_DIR@
 
68
ERL_LIB_DIR = @ERLANG_LIB_DIR@
 
69
DOCGEN_DIR = @ERLANG_LIB_DIR_erl_docgen@
 
70
TEST_SERVER_DIR = @ERLANG_LIB_VER_test_server@
 
71
EMULATOR = beam
 
72
ERL_COMPILE_FLAGS += +debug_info
 
73
ERLC_WFLAGS = -W
 
74
ERLC = $(ERL_ROOT_DIR)/bin/erlc $(ERLC_WFLAGS) $(ERLC_FLAGS)
 
75
ERL = $(ERL_ROOT_DIR)/bin/erl -boot start_clean
 
76
#ERLC = @ERLC@ $(ERLC_WFLAGS) $(ERLC_FLAGS)
 
77
#ERL = @ERL@ -boot start_clean
 
78
 
 
79
ifneq (,$(findstring $(origin EBIN),$(DUBIOUS_ORIGINS)))
 
80
EBIN = ../../ebin
 
81
endif
 
82
 
 
83
# Generated (non ebin) files...
 
84
ifneq (,$(findstring $(origin EGEN),$(DUBIOUS_ORIGINS)))
 
85
EGEN = .
 
86
endif
 
87
 
 
88
ifneq (,$(findstring $(origin ESRC),$(DUBIOUS_ORIGINS)))
 
89
ESRC = .
 
90
endif
 
91
 
 
92
$(EBIN)/%.beam: $(EGEN)/%.erl
 
93
        $(ERLC) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
 
94
 
 
95
$(EBIN)/%.beam: $(ESRC)/%.erl
 
96
        $(ERLC) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
 
97
 
 
98
.erl.beam:
 
99
        $(ERLC) $(ERL_COMPILE_FLAGS) -o$(dir $@) $<
 
100
 
 
101
 
 
102
#
 
103
# When .erl files are automatically created GNU make removes them if
 
104
# they were the result of a chain of implicit rules. To prevent this
 
105
# we say that all .erl files are "precious".
 
106
#
 
107
.PRECIOUS: %.erl %.fo
 
108
 
 
109
 
 
110
# ----------------------------------------------------
 
111
#       Documentation section
 
112
# ----------------------------------------------------
 
113
# export VSN
 
114
 
 
115
# TOPDOCDIR=../../../../doc
 
116
 
 
117
DOCDIR = ..
 
118
 
 
119
PDFDIR=$(DOCDIR)/pdf
 
120
 
 
121
HTMLDIR = $(DOCDIR)/html
 
122
 
 
123
MAN1DIR = $(DOCDIR)/man1
 
124
MAN2DIR = $(DOCDIR)/man2
 
125
MAN3DIR = $(DOCDIR)/man3
 
126
MAN4DIR = $(DOCDIR)/man4
 
127
MAN6DIR = $(DOCDIR)/man6
 
128
MAN9DIR = $(DOCDIR)/man9
 
129
 
 
130
# HTML & GIF files that always are generated and must be delivered
 
131
XML_COLL_FILES = $(XML_APPLICATION_FILES) $(XML_PART_FILES)
 
132
DEFAULT_HTML_FILES = \
 
133
        $(XML_COLL_FILES:%.xml=$(HTMLDIR)/%_frame.html) \
 
134
        $(XML_COLL_FILES:%.xml=$(HTMLDIR)/%_first.html) \
 
135
        $(XML_COLL_FILES:%.xml=$(HTMLDIR)/%_term.html) \
 
136
        $(XML_COLL_FILES:%.xml=$(HTMLDIR)/%_cite.html) \
 
137
        $(XML_APPLICATION_FILES:%.xml=$(HTMLDIR)/%_index.html) \
 
138
        $(XML_APPLICATION_FILES:%.xml=$(HTMLDIR)/%.kwc) \
 
139
        $(HTMLDIR)/index.html
 
140
 
 
141
DEFAULT_GIF_FILES = $(HTMLDIR)/min_head.gif
 
142
 
 
143
#
 
144
# Flags & Commands
 
145
#
 
146
XSLTPROC = @XSLTPROC@
 
147
FOP = @FOP@
 
148
 
 
149
DOCGEN=$(DOCGEN_DIR)
 
150
 
 
151
$(MAN1DIR)/%.1:: %.xml
 
152
        date=`date +"%B %e %Y"`; \
 
153
        xsltproc --output "$@" --stringparam company "Ericsson AB" --stringparam docgen "$(DOCGEN)" --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude -path $(DOCGEN)/priv/docbuilder_dtd  -path $(DOCGEN)/priv/dtd_man_entities $(DOCGEN)/priv/xsl/db_man.xsl $<
 
154
 
 
155
 
 
156
$(MAN2DIR)/%.2:: %.xml
 
157
        date=`date +"%B %e %Y"`; \
 
158
        xsltproc --output "$@" --stringparam company "Ericsson AB" --stringparam docgen "$(DOCGEN)" --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude -path $(DOCGEN)/priv/docbuilder_dtd  -path $(DOCGEN)/priv/dtd_man_entities $(DOCGEN)/priv/xsl/db_man.xsl $<
 
159
 
 
160
 
 
161
$(MAN3DIR)/%.3:: %.xml
 
162
        date=`date +"%B %e %Y"`; \
 
163
        xsltproc --output "$@" --stringparam company "Ericsson AB" --stringparam docgen "$(DOCGEN)" --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude -path $(DOCGEN)/priv/docbuilder_dtd  -path $(DOCGEN)/priv/dtd_man_entities $(DOCGEN)/priv/xsl/db_man.xsl $<
 
164
 
 
165
# left for compatibility
 
166
$(MAN4DIR)/%.4:: %.xml
 
167
        date=`date +"%B %e %Y"`; \
 
168
        xsltproc --output "$@" --stringparam company "Ericsson AB" --stringparam docgen "$(DOCGEN)" --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude -path $(DOCGEN)/priv/docbuilder_dtd  -path $(DOCGEN)/priv/dtd_man_entities $(DOCGEN)/priv/xsl/db_man.xsl $<
 
169
 
 
170
$(MAN4DIR)/%.5:: %.xml
 
171
        date=`date +"%B %e %Y"`; \
 
172
        xsltproc --output "$@" --stringparam company "Ericsson AB" --stringparam docgen "$(DOCGEN)" --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude -path $(DOCGEN)/priv/docbuilder_dtd  -path $(DOCGEN)/priv/dtd_man_entities $(DOCGEN)/priv/xsl/db_man.xsl $<
 
173
 
 
174
# left for compatibility
 
175
$(MAN6DIR)/%.6:: %_app.xml
 
176
        date=`date +"%B %e %Y"`; \
 
177
        xsltproc --output "$@" --stringparam company "Ericsson AB" --stringparam docgen "$(DOCGEN)" --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude -path $(DOCGEN)/priv/docbuilder_dtd  -path $(DOCGEN)/priv/dtd_man_entities $(DOCGEN)/priv/xsl/db_man.xsl $<
 
178
 
 
179
$(MAN6DIR)/%.7:: %_app.xml
 
180
        date=`date +"%B %e %Y"`; \
 
181
        xsltproc --output "$@" --stringparam company "Ericsson AB" --stringparam docgen "$(DOCGEN)" --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude -path $(DOCGEN)/priv/docbuilder_dtd  -path $(DOCGEN)/priv/dtd_man_entities $(DOCGEN)/priv/xsl/db_man.xsl $<
 
182
 
 
183
$(MAN9DIR)/%.9:: %.xml
 
184
        date=`date +"%B %e %Y"`; \
 
185
        xsltproc --output "$@" --stringparam company "Ericsson AB" --stringparam docgen "$(DOCGEN)" --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude -path $(DOCGEN)/priv/docbuilder_dtd  -path $(DOCGEN)/priv/dtd_man_entities $(DOCGEN)/priv/xsl/db_man.xsl $<
 
186
 
 
187
 
 
188
.xmlsrc.xml:
 
189
        escript $(DOCGEN)/priv/bin/codeline_preprocessing.escript $< $@
 
190
 
 
191
.fo.pdf:
 
192
        $(FOP) -fo $< -pdf $@
 
193