dmt-client/Makefile
Toporkov Igor 6bb0b65a18
MSPF-438: Erlang 21 (#28)
* Revert "DC-116: Revert "Add Erlang 21 support (#24)" (#25)"

This reverts commit 97fdfe552c.

* Added hay metrics, updated to new deps

* Removed redundant configs

* Customizable event_handlers

* renamed event_handlers option
2019-05-07 17:31:16 +03:00

56 lines
989 B
Makefile

REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
SUBMODULES = builtils
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
UTILS_PATH := builtils
TEMPLATES_PATH := .
# Name of the service
SERVICE_NAME := dmt_client
# Build image tag to be used
BUILD_IMAGE_TAG := fcf116dd775cc2e91bffb6a36835754e3f2d5321
CALL_ANYWHERE := all submodules rebar-update compile xref lint dialyze check clean distclean
CALL_W_CONTAINER := $(CALL_ANYWHERE) test
all: compile
-include $(UTILS_PATH)/make_lib/utils_container.mk
.PHONY: $(CALL_W_CONTAINER)
$(SUBTARGETS): %/.git: %
git submodule update --init $<
touch $@
submodules: $(SUBTARGETS)
rebar-update:
$(REBAR) update
compile: submodules rebar-update
$(REBAR) compile
xref: submodules
$(REBAR) xref
lint:
elvis rock
dialyze: submodules
$(REBAR) dialyzer
test: submodules
$(REBAR) eunit
$(REBAR) ct
check: lint xref dialyze
clean:
$(REBAR) clean
distclean:
$(REBAR) clean -a
rm -rfv _build _builds _cache _steps _temp