|
| 1 | +# |
| 2 | +# %CopyrightBegin% |
| 3 | +# |
| 4 | +# Copyright Ericsson AB 2023. 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 | +include $(ERL_TOP)/make/target.mk |
| 22 | + |
| 23 | +# ---------------------------------------------------- |
| 24 | +# Configuration info. |
| 25 | +# ---------------------------------------------------- |
| 26 | +include $(ERL_TOP)/make/$(TARGET)/otp.mk |
| 27 | + |
| 28 | +# ---------------------------------------------------- |
| 29 | +# Release directory specification |
| 30 | +# ---------------------------------------------------- |
| 31 | +PROPEREXTDIR = $(RELEASE_PATH)/lib/common_test-$(VSN)/proper_ext |
| 32 | + |
| 33 | +# ---------------------------------------------------- |
| 34 | +# Target Specs |
| 35 | +# ---------------------------------------------------- |
| 36 | + |
| 37 | +EBIN=. |
| 38 | + |
| 39 | +MODULES= \ |
| 40 | + proper_ext |
| 41 | + |
| 42 | +TARGET_MODULES= $(MODULES:%=$(EBIN)/%) |
| 43 | +TARGET_MODULES= $(MODULES:%=$(EBIN)/%) |
| 44 | + |
| 45 | +ERL_FILES = $(MODULES:=.erl) |
| 46 | +HRL_FILES = |
| 47 | + |
| 48 | +TARGET_FILES = $(MODULES:%=$(EBIN)/%.$(EMULATOR)) |
| 49 | + |
| 50 | +TARGETS = $(MODULES:%=$(EBIN)/%.$(EMULATOR)) |
| 51 | + |
| 52 | +# ---------------------------------------------------- |
| 53 | +# FLAGS |
| 54 | +# ---------------------------------------------------- |
| 55 | +ERL_COMPILE_FLAGS += -I../include -Werror |
| 56 | + |
| 57 | +# ---------------------------------------------------- |
| 58 | +# Targets |
| 59 | +# ---------------------------------------------------- |
| 60 | + |
| 61 | +tests $(TYPES): $(TARGETS) |
| 62 | + |
| 63 | +clean: |
| 64 | + rm -f $(TARGET_FILES) |
| 65 | + rm -f core |
| 66 | + |
| 67 | +docs: |
| 68 | + |
| 69 | +# ---------------------------------------------------- |
| 70 | +# Special Build Targets |
| 71 | +# ---------------------------------------------------- |
| 72 | + |
| 73 | +# ---------------------------------------------------- |
| 74 | +# Release Target |
| 75 | +# ---------------------------------------------------- |
| 76 | +include $(ERL_TOP)/make/otp_release_targets.mk |
| 77 | + |
| 78 | +release_spec: opt |
| 79 | + $(INSTALL_DIR) "$(PROPEREXTDIR)" |
| 80 | + $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) \ |
| 81 | + $(TARGET_FILES) \ |
| 82 | + "$(PROPEREXTDIR)" |
| 83 | + |
| 84 | +release_docs_spec: |
0 commit comments