4
# Copyright Ericsson AB 2009. All Rights Reserved.
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/.
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
19
include $(ERL_TOP)/make/target.mk
20
include $(ERL_TOP)/make/$(TARGET)/otp.mk
25
ERL_FILES= $(MODULES:%=%.erl)
27
TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
28
INSTALL_PROGS= $(TARGET_FILES)
33
# ----------------------------------------------------
34
# Release directory specification
35
# ----------------------------------------------------
36
RELSYSDIR = $(RELEASE_PATH)/eunit_test
38
# ----------------------------------------------------
40
# ----------------------------------------------------
41
ERL_MAKE_FLAGS += -pa $(ERL_TOP)/lib/test_server/ebin
42
ERL_COMPILE_FLAGS += -I$(ERL_TOP)/lib/test_server/include
46
# ----------------------------------------------------
48
# ----------------------------------------------------
49
.PHONY: make_emakefile
52
$(ERL_TOP)/make/make_emakefile $(ERL_COMPILE_FLAGS) -o$(EBIN) \
53
$(MODULES) >> $(EMAKEFILE)
55
tests debug opt: make_emakefile
56
erl $(ERL_MAKE_FLAGS) -make
65
# ----------------------------------------------------
67
# ----------------------------------------------------
69
# ----------------------------------------------------
71
# ----------------------------------------------------
72
include $(ERL_TOP)/make/otp_release_targets.mk
76
release_tests_spec: make_emakefile
77
$(INSTALL_DIR) $(RELSYSDIR)
78
$(INSTALL_DATA) eunit.dynspec $(EMAKEFILE) \
79
$(COVERFILE) $(ERL_FILES) \