1# 2# %CopyrightBegin% 3# 4# Copyright Ericsson AB 1998-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# 20include $(ERL_TOP)/make/target.mk 21include $(ERL_TOP)/make/$(TARGET)/otp.mk 22 23# ---------------------------------------------------- 24# Target Specs 25# ---------------------------------------------------- 26 27MODULES= \ 28 andor_SUITE \ 29 bs_bincomp_SUITE \ 30 bs_construct_SUITE \ 31 bs_match_bin_SUITE \ 32 bs_match_int_SUITE \ 33 bs_match_misc_SUITE \ 34 bs_match_tail_SUITE \ 35 bs_size_expr_SUITE \ 36 bs_utf_SUITE \ 37 bug_SUITE \ 38 erl_eval_SUITE \ 39 dbg_ui_SUITE \ 40 debugger_SUITE \ 41 int_SUITE \ 42 int_break_SUITE \ 43 int_eval_SUITE \ 44 guard_SUITE \ 45 exception_SUITE \ 46 fun_SUITE \ 47 lc_SUITE \ 48 line_number_SUITE \ 49 map_SUITE \ 50 overridden_bif_SUITE \ 51 record_SUITE \ 52 trycatch_SUITE \ 53 test_lib \ 54 cleanup 55 56ERL_FILES= $(MODULES:%=%.erl) 57 58TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) 59INSTALL_PROGS= $(TARGET_FILES) 60 61EMAKEFILE=Emakefile 62 63# ---------------------------------------------------- 64# Release directory specification 65# ---------------------------------------------------- 66RELSYSDIR = $(RELEASE_PATH)/debugger_test 67 68# ---------------------------------------------------- 69# FLAGS 70# ---------------------------------------------------- 71 72ERL_MAKE_FLAGS += 73ERL_COMPILE_FLAGS += 74 75EBIN = . 76 77# ---------------------------------------------------- 78# Targets 79# ---------------------------------------------------- 80 81make_emakefile: 82 $(ERL_TOP)/make/make_emakefile $(ERL_COMPILE_FLAGS) -o$(EBIN) $(MODULES) \ 83 > $(EMAKEFILE) 84 $(ERL_TOP)/make/make_emakefile $(ERL_COMPILE_FLAGS) -o$(EBIN) '*_SUITE_make' \ 85 >> $(EMAKEFILE) 86 87tests debug opt: make_emakefile 88 erl $(ERL_MAKE_FLAGS) -make 89 90clean: 91 rm -f $(EMAKEFILE) 92 rm -f $(TARGET_FILES) $(GEN_FILES) 93 rm -f core 94 95docs: 96 97# ---------------------------------------------------- 98# Release Target 99# ---------------------------------------------------- 100include $(ERL_TOP)/make/otp_release_targets.mk 101 102release_spec: opt 103 104release_tests_spec: make_emakefile 105 $(INSTALL_DIR) "$(RELSYSDIR)" 106 $(INSTALL_DATA) $(EMAKEFILE) $(ERL_FILES) "$(RELSYSDIR)" 107 $(INSTALL_DATA) debugger.spec debugger.cover "$(RELSYSDIR)" 108 chmod -R u+w "$(RELSYSDIR)" 109 @tar cf - *_SUITE_data | (cd "$(RELSYSDIR)"; tar xf -) 110 111release_docs_spec: 112