lager_logstash_formatter/Makefile
Andrey Fadeev 6b835c4aa0
Update build-utils (#9)
* Update build-utils
* Update build image
2020-05-22 12:47:35 +03:00

49 lines
823 B
Makefile

REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
SUBMODULES = build_utils
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
SERVICE_NAME = dev
UTILS_PATH := build_utils
TEMPLATES_PATH = .
BUILD_IMAGE_TAG := 07d3946f8f005782697de20270ac58cdcd18b011
CALL_ANYWHERE := all submodules rebar-update compile lint xref test clean distclean
CALL_W_CONTAINER := $(CALL_ANYWHERE)
.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) eunit
xref: submodules
$(REBAR) as test xref
clean:
$(REBAR) clean
distclean:
$(REBAR) clean -a
rm -rfv _build
lint:
elvis rock