1#
2# %CopyrightBegin%
3#
4# Copyright Ericsson AB 1996-2016. 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#
20
21#
22include $(ERL_TOP)/make/target.mk
23include $(ERL_TOP)/make/$(TARGET)/otp.mk
24
25# ----------------------------------------------------
26# Application version
27# ----------------------------------------------------
28include ../vsn.mk
29VSN=$(MNESIA_VSN)
30
31# ----------------------------------------------------
32# Release Macros
33# ----------------------------------------------------
34RELSYSDIR = $(RELEASE_PATH)/lib/mnesia-$(VSN)
35
36# ----------------------------------------------------
37# Common Macros
38# ----------------------------------------------------
39
40
41MODULES = \
42	company \
43	company_o \
44	bup \
45	mnesia_meter \
46	mnesia_tpcb
47
48ERL_FILES= $(MODULES:=.erl)
49
50HRL_FILES = \
51	company.hrl \
52	company_o.hrl
53
54DATA_FILES = \
55	DATA
56
57# TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
58TARGET_FILES =
59
60# ----------------------------------------------------
61# FLAGS
62# ----------------------------------------------------
63ERL_COMPILE_FLAGS += -pa ../ebin
64EBIN = .
65
66# ----------------------------------------------------
67# Make Rules
68# ----------------------------------------------------
69debug opt: $(TARGET_FILES)
70
71clean:
72	rm -f $(TARGET_FILES) *~
73
74docs:
75
76# ----------------------------------------------------
77# Release Targets
78# ----------------------------------------------------
79include $(ERL_TOP)/make/otp_release_targets.mk
80
81release_spec: opt
82	$(INSTALL_DIR) "$(RELSYSDIR)/examples"
83	$(INSTALL_DATA) $(ERL_FILES) $(DATA_FILES) $(HRL_FILES) "$(RELSYSDIR)/examples"
84	$(INSTALL_DIR) "$(RELSYSDIR)/examples/bench"
85	(cd bench; $(INSTALL_DATA) \
86          Makefile \
87          README \
88          bench.erl \
89          bench.hrl \
90          bench_generate.erl \
91          bench_populate.erl \
92          bench_trans.erl \
93          bench.config1 \
94          bench.config2 \
95          bench.config3 \
96          bench.config4 \
97          bench.config5 \
98          bench.config6 \
99          bench.config7 \
100          "$(RELSYSDIR)/examples/bench")
101	(cd bench; $(INSTALL_SCRIPT) bench.sh "$(RELSYSDIR)/examples/bench")
102
103release_docs_spec:
104
105