mirror of
https://github.com/valitydev/erlang_uac.git
synced 2024-11-06 01:35:23 +00:00
61 lines
905 B
Makefile
61 lines
905 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 := erlang_uac
|
|
|
|
BUILD_IMAGE_TAG := 562313697353c29d4b34fb081a8b70e8c2207134
|
|
|
|
CALL_ANYWHERE := \
|
|
submodules \
|
|
all compile xref lint dialyze test cover \
|
|
start clean distclean
|
|
|
|
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
|
|
|
|
dialyze:
|
|
$(REBAR) dialyzer
|
|
|
|
start: submodules
|
|
$(REBAR) run
|
|
|
|
clean:
|
|
$(REBAR) cover -r
|
|
$(REBAR) clean
|
|
|
|
distclean:
|
|
$(REBAR) clean
|
|
rm -rf _build
|
|
|
|
cover:
|
|
$(REBAR) cover
|
|
|
|
# CALL_W_CONTAINER
|
|
test:
|
|
$(REBAR) ct
|