bouncer-client-erlang/Makefile
Артем d053efc9a3
MSPF-621: Bouncer client (#1)
* added files

* inited sub modules

* added mock test

* updated from url shortener

* added tests

* fixed format

* Fix lint

* fixed compose

* added requested changes

* added more itfs

* removed service name, changed test to wc

* returned service name

Co-authored-by: Sergey Yelin <elinsn@gmail.com>
2020-11-18 13:41:20 +03:00

65 lines
958 B
Makefile

REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
SUBMODULES = build_utils
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
UTILS_PATH := build_utils
TEMPLATES_PATH := .
# Name of the service
SERVICE_NAME := bouncer_client_erlang
BUILD_IMAGE_TAG := 0c638a682f4735a65ef232b81ed872ba494574c3
CALL_ANYWHERE := \
submodules \
all compile xref lint dialyze test cover \
clean distclean \
check_format format
CALL_W_CONTAINER := $(CALL_ANYWHERE)
.PHONY: $(CALL_W_CONTAINER) all
all: compile
-include $(UTILS_PATH)/make_lib/utils_container.mk
$(SUBTARGETS): %/.git: %
git submodule update --init $<
touch $@
submodules: $(SUBTARGETS)
compile:
$(REBAR) compile
xref:
$(REBAR) xref
lint:
elvis rock
check_format:
$(REBAR) fmt -c
format:
$(REBAR) fmt -w
dialyze:
$(REBAR) dialyzer
clean:
$(REBAR) cover -r
$(REBAR) clean
distclean:
$(REBAR) clean
rm -rf _build
cover:
$(REBAR) cover
# CALL_W_CONTAINER
test:
$(REBAR) ct