mirror of
https://github.com/valitydev/fraudbusters-proto.git
synced 2024-11-06 02:25:16 +00:00
6db2558985
* Switch to public maven repo * Bump build image tag
43 lines
853 B
Makefile
43 lines
853 B
Makefile
THRIFT = $(or $(shell which thrift), $(error "`thrift' executable missing"))
|
|
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 := fraudbusters-proto
|
|
|
|
# Build image tag to be used
|
|
BUILD_IMAGE_TAG := b04c5291d101132e53e578d96e1628d2e6dab0c0
|
|
CALL_ANYWHERE := \
|
|
all submodules compile clean distclean
|
|
|
|
CALL_W_CONTAINER := $(CALL_ANYWHERE)
|
|
|
|
all: compile
|
|
|
|
-include $(UTILS_PATH)/make_lib/utils_container.mk
|
|
|
|
.PHONY: $(CALL_W_CONTAINER)
|
|
|
|
# CALL_ANYWHERE
|
|
$(SUBTARGETS): %/.git: %
|
|
git submodule update --init $<
|
|
touch $@
|
|
|
|
submodules: $(SUBTARGETS)
|
|
|
|
compile:
|
|
$(REBAR) compile
|
|
|
|
clean:
|
|
$(REBAR) clean
|
|
|
|
distclean:
|
|
$(REBAR) clean -a
|
|
rm -rfv _build
|
|
|
|
include $(UTILS_PATH)/make_lib/java_proto.mk
|