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

« back to all changes in this revision

Viewing changes to lib/eunit/test/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-06-11 12:18:07 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090611121807-ks7eb4xrt7dsysgx
Tags: 1:13.b.1-dfsg-1
* New upstream release.
* Removed unnecessary dependency of erlang-os-mon on erlang-observer and
  erlang-tools and added missing dependency of erlang-nox on erlang-os-mon
  (closes: #529512).
* Removed a patch to eunit application because the bug was fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# %CopyrightBegin%
 
3
 
4
# Copyright Ericsson AB 2009. All Rights Reserved.
 
5
 
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
# %CopyrightEnd%
 
18
#
 
19
include $(ERL_TOP)/make/target.mk
 
20
include $(ERL_TOP)/make/$(TARGET)/otp.mk
 
21
 
 
22
MODULES =  \
 
23
        eunit_SUITE
 
24
 
 
25
ERL_FILES= $(MODULES:%=%.erl)
 
26
 
 
27
TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
 
28
INSTALL_PROGS= $(TARGET_FILES)
 
29
 
 
30
EMAKEFILE=Emakefile
 
31
COVERFILE=eunit.cover
 
32
 
 
33
# ----------------------------------------------------
 
34
# Release directory specification
 
35
# ----------------------------------------------------
 
36
RELSYSDIR = $(RELEASE_PATH)/eunit_test
 
37
 
 
38
# ----------------------------------------------------
 
39
# FLAGS
 
40
# ----------------------------------------------------
 
41
ERL_MAKE_FLAGS += -pa $(ERL_TOP)/lib/test_server/ebin
 
42
ERL_COMPILE_FLAGS += -I$(ERL_TOP)/lib/test_server/include
 
43
 
 
44
EBIN = .
 
45
 
 
46
# ----------------------------------------------------
 
47
# Targets
 
48
# ----------------------------------------------------
 
49
.PHONY: make_emakefile
 
50
 
 
51
make_emakefile:
 
52
        $(ERL_TOP)/make/make_emakefile $(ERL_COMPILE_FLAGS) -o$(EBIN) \
 
53
                $(MODULES) >> $(EMAKEFILE)
 
54
 
 
55
tests debug opt: make_emakefile
 
56
        erl $(ERL_MAKE_FLAGS) -make
 
57
 
 
58
clean:
 
59
        rm -f $(EMAKEFILE)
 
60
        rm -f $(TARGET_FILES)
 
61
        rm -f core
 
62
 
 
63
docs:
 
64
 
 
65
# ----------------------------------------------------
 
66
# Special targets
 
67
# ----------------------------------------------------
 
68
 
 
69
# ----------------------------------------------------
 
70
# Release Target
 
71
# ---------------------------------------------------- 
 
72
include $(ERL_TOP)/make/otp_release_targets.mk
 
73
 
 
74
release_spec: opt
 
75
 
 
76
release_tests_spec: make_emakefile
 
77
        $(INSTALL_DIR) $(RELSYSDIR)
 
78
        $(INSTALL_DATA) eunit.dynspec $(EMAKEFILE) \
 
79
                $(COVERFILE) $(ERL_FILES) \
 
80
                $(RELSYSDIR)
 
81
 
 
82
release_docs_spec: