~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/public_key/src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#<copyright>
 
2
# <year>1996-2007</year>
 
3
# <holder>Ericsson AB, All Rights Reserved</holder>
 
4
#</copyright>
 
5
#<legalnotice>
 
6
# The contents of this file are subject to the Erlang Public License,
 
7
# Version 1.1, (the "License"); you may not use this file except in
 
8
# compliance with the License. You should have received a copy of the
 
9
# Erlang Public License along with this software. If not, it can be
 
10
# retrieved online at http://www.erlang.org/.
 
11
#
 
12
# Software distributed under the License is distributed on an "AS IS"
 
13
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
14
# the License for the specific language governing rights and limitations
 
15
# under the License.
 
16
#
 
17
# The Initial Developer of the Original Code is Ericsson AB.
 
18
#</legalnotice>
 
19
#
 
20
include $(ERL_TOP)/make/target.mk
 
21
include $(ERL_TOP)/make/$(TARGET)/otp.mk
 
22
 
 
23
# ----------------------------------------------------
 
24
# Application version
 
25
# ----------------------------------------------------
 
26
include ../vsn.mk
 
27
 
 
28
VSN     = $(PUBLIC_KEY_VSN)
 
29
APP_VSN = "public_key-$(VSN)"
 
30
 
 
31
 
 
32
# ----------------------------------------------------
 
33
# Release directory specification
 
34
# ----------------------------------------------------
 
35
RELSYSDIR = $(RELEASE_PATH)/lib/public_key-$(VSN)
 
36
 
 
37
# ----------------------------------------------------
 
38
# Target Specs
 
39
# ----------------------------------------------------
 
40
MODULES = \
 
41
        public_key \
 
42
        pubkey_pem \
 
43
        pubkey_cert \
 
44
        pubkey_cert_records \
 
45
        pubkey_crypto
 
46
 
 
47
HRL_FILES = $(INCLUDE)/public_key.hrl
 
48
 
 
49
INTERNAL_HRL_FILES = 
 
50
 
 
51
ERL_FILES = $(MODULES:%=%.erl)
 
52
 
 
53
TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
 
54
 
 
55
INCLUDE = ../include
 
56
# ----------------------------------------------------
 
57
# INETS FLAGS
 
58
# ----------------------------------------------------
 
59
PUB_KEY_FLAGS =
 
60
 
 
61
# ----------------------------------------------------
 
62
# FLAGS
 
63
# ----------------------------------------------------
 
64
PUB_KEY_ERL_FLAGS += -I $(INCLUDE) -I ../asn1/
 
65
 
 
66
ERL_COMPILE_FLAGS += $(PUB_KEY_ERL_FLAGS) \
 
67
                     $(PUB_KEY_FLAGS) \
 
68
                     +'{parse_transform,sys_pre_attributes}' \
 
69
                     +'{attribute,insert,app_vsn,$(APP_VSN)}'
 
70
 
 
71
# ----------------------------------------------------
 
72
# Targets
 
73
# ----------------------------------------------------
 
74
 
 
75
debug opt: $(TARGET_FILES) $(HRL_FILES)
 
76
 
 
77
clean:
 
78
        rm -f $(TARGET_FILES)
 
79
        rm -f core
 
80
 
 
81
docs:
 
82
 
 
83
# ----------------------------------------------------
 
84
# Release Target
 
85
# ---------------------------------------------------- 
 
86
include $(ERL_TOP)/make/otp_release_targets.mk
 
87
 
 
88
release_spec: opt
 
89
        $(INSTALL_DIR) $(RELSYSDIR)/src
 
90
        $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) $(RELSYSDIR)/src
 
91
        $(INSTALL_DIR) $(RELSYSDIR)/include
 
92
        $(INSTALL_DATA) $(HRL_FILES) $(RELSYSDIR)/include
 
93
        $(INSTALL_DIR) $(RELSYSDIR)/ebin
 
94
        $(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
 
95
 
 
96
release_docs_spec:
 
97