2016-10-20 14:06:09 +00:00
|
|
|
REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
|
|
|
|
SUBMODULES = build_utils damsel
|
|
|
|
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
|
|
|
|
|
|
|
|
UTILS_PATH := build_utils
|
|
|
|
TEMPLATES_PATH := .
|
|
|
|
|
|
|
|
# Name of the service
|
2017-01-26 22:47:06 +00:00
|
|
|
SERVICE_NAME := holmes
|
2016-10-20 14:06:09 +00:00
|
|
|
# Service image default tag
|
|
|
|
SERVICE_IMAGE_TAG ?= $(shell git rev-parse HEAD)
|
|
|
|
# The tag for service image to be pushed with
|
|
|
|
SERVICE_IMAGE_PUSH_TAG ?= $(SERVICE_IMAGE_TAG)
|
|
|
|
|
|
|
|
# Base image for the service
|
|
|
|
BASE_IMAGE_NAME := build
|
2016-10-21 09:25:06 +00:00
|
|
|
BASE_IMAGE_TAG := 61ffe7ed2dd757c3fdd138a6bc5b255cac8b7e95
|
2016-10-20 14:06:09 +00:00
|
|
|
|
|
|
|
CALL_ANYWHERE := all submodules
|
|
|
|
|
|
|
|
# Hint: 'test' might be a candidate for CALL_W_CONTAINER-only target
|
|
|
|
CALL_W_CONTAINER := $(CALL_ANYWHERE)
|
|
|
|
|
|
|
|
.PHONY: $(CALL_W_CONTAINER)
|
|
|
|
|
|
|
|
all: submodules
|
|
|
|
|
|
|
|
-include $(UTILS_PATH)/make_lib/utils_image.mk
|
|
|
|
|
|
|
|
$(SUBTARGETS): %/.git: %
|
|
|
|
git submodule update --init $<
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
submodules: $(SUBTARGETS)
|
|
|
|
|