mirror of
https://github.com/valitydev/woody_erlang.git
synced 2024-11-06 02:15:19 +00:00
09506cdd10
List of changes: * Use thrift plugin compiler 0.3.0 * Update build_tools to latest * Update build image to Erlang 21 * Added execution_start_time, execution_end_time, execution_duration_ms to woody state
52 lines
982 B
Makefile
52 lines
982 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 := woody
|
|
BUILD_IMAGE_TAG := 7267e019e3c75e8e5ae5c9f2004960341733f829
|
|
|
|
CALL_W_CONTAINER := all submodules rebar-update compile xref lint test dialyze 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)
|
|
|
|
rebar-update:
|
|
$(REBAR) update
|
|
|
|
compile: submodules rebar-update
|
|
$(REBAR) compile
|
|
|
|
test: submodules
|
|
$(REBAR) eunit
|
|
$(REBAR) ct
|
|
|
|
xref: submodules
|
|
$(REBAR) xref
|
|
|
|
lint: compile
|
|
elvis rock
|
|
|
|
clean:
|
|
$(REBAR) clean
|
|
|
|
distclean:
|
|
$(REBAR) clean -a
|
|
rm -rfv _build _builds _cache _steps _temp
|
|
|
|
dialyze:
|
|
$(REBAR) dialyzer
|
|
|