mirror of
https://github.com/valitydev/party-client-erlang.git
synced 2024-11-06 10:45:23 +00:00
b7a524466b
* Update all test deps * Add new params to ComputeContractTerms
53 lines
959 B
Makefile
53 lines
959 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 := party_client
|
|
|
|
# Build image tag to be used
|
|
BUILD_IMAGE_TAG := bdc05544014b3475c8e0726d3b3d6fc81b09db96
|
|
|
|
CALL_ANYWHERE := all submodules compile xref lint dialyze clean distclean
|
|
CALL_W_CONTAINER := $(CALL_ANYWHERE) test get_test_deps
|
|
|
|
all: compile
|
|
|
|
-include $(UTILS_PATH)/make_lib/utils_container.mk
|
|
|
|
.PHONY: $(CALL_W_CONTAINER)
|
|
|
|
$(SUBTARGETS): %/.git: %
|
|
git submodule update --init $<
|
|
touch $@
|
|
|
|
submodules: $(SUBTARGETS)
|
|
|
|
compile: submodules
|
|
$(REBAR) compile
|
|
|
|
xref: submodules
|
|
$(REBAR) xref
|
|
|
|
lint:
|
|
elvis rock
|
|
|
|
dialyze: submodules
|
|
$(REBAR) dialyzer
|
|
|
|
test: submodules
|
|
$(REBAR) ct
|
|
|
|
get_test_deps: submodules
|
|
$(REBAR) as test get-deps
|
|
|
|
clean:
|
|
$(REBAR) clean
|
|
|
|
distclean:
|
|
$(REBAR) clean -a
|
|
rm -rfv _build _builds _cache _steps _temp
|