scoper/Makefile
Sergey Elin 95643f40dd
MSPF-472: Update erlang (#10)
* MSPF-472: Update erlang

* Update plt file
2019-06-21 14:19:50 +03:00

51 lines
975 B
Makefile

REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
SUBMODULES = build_utils
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
UTILS_PATH := build_utils
# ToDo: remove unused TEMPLATES_PATH here, when the bug
# with handling of the varriable in build_utils is fixed
TEMPLATES_PATH := .
SERVICE_NAME := scoper
BUILD_IMAGE_TAG := cd38c35976f3684fe7552533b6175a4c3460e88b
CALL_W_CONTAINER := all submodules rebar-update compile xref lint dialyze test clean distclean
.PHONY: $(CALL_W_CONTAINER)
all: compile
-include $(UTILS_PATH)/make_lib/utils_container.mk
$(SUBTARGETS): %/.git: %
git submodule update --init $<
touch $@
submodules: $(SUBTARGETS)
compile: submodules rebar-update
$(REBAR) compile
rebar-update:
$(REBAR) update
test: submodules
$(REBAR) ct
xref: submodules
$(REBAR) as test xref
clean:
$(REBAR) clean
distclean:
$(REBAR) clean -a
rm -rfv _build _builds _cache _steps _temp
dialyze:
$(REBAR) as test dialyzer
lint:
elvis rock