dmt-client/Makefile
Jarosław Rogov 64591401b0
Feat/upstream latest (#53)
* deps: Fix build_utils dir

* feat: Add use_upstream_latest force fetch option

* fix: Add lower limits for max cache size opts

* fix: Fix dialyzer warning

* test: Add use_upstream_latest test

* fix: Fix use_upstream_latest opt fetching

* fix: Add option to sys.config

* ref: Fix naming

* ref: Fix dialyzer warning

* ref: Fix do_get naming

* ref: Move constants to defines

* fix: Check cache limits on start, refactor cache

* test: Fix unit tests

* fix: Fix dialyzer issue

* ref: Rename to use_cached_latest

* fix: Fix option invertion

* fix: Fix inversion once again

* fix: Remove use_cached_latest as env opt

* Revert "fix: Remove use_cached_latest as env opt"

This reverts commit a5216280e1c0a7c5a1bf3420cb60cf6e51343677.

* fix: Remove from opts

* ref: Rename to use_cached_last_version

* fix: Fix use_cached_last_version default

* test: Check default case
2021-10-21 17:58:03 +03:00

62 lines
1.0 KiB
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 := dmt_client
# Build image tag to be used
BUILD_IMAGE_NAME := build-erlang
BUILD_IMAGE_TAG := eb6f9920868599f7e1a8ee9aaedb1921a027f7a0
CALL_ANYWHERE := all submodules rebar-update compile xref lint dialyze check clean distclean check_format format
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
check_format:
$(REBAR) fmt -c
format:
$(REBAR) fmt -w
dialyze: submodules
$(REBAR) as dialyze dialyzer
test: submodules
$(REBAR) eunit
$(REBAR) ct
check: lint xref dialyze
clean:
$(REBAR) clean
distclean:
rm -rfv _build