holmes/Makefile
Andrew Mayorov e1e866ad74 HG-129: Patch base fixture in accordance w/ current damsel definitions (#12)
* HG-129: Add script filename extension

* HG-129: Patch base fixture in accordance w/ current damsel definitions

* HG-152: Fix hellgate scripts

* HG-152: Fix base fixture to follow rkmoney/damsel@a603319

* HG-152: Try to improve script usefulness and informativity
2017-02-02 16:53:41 +03:00

36 lines
848 B
Makefile

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
SERVICE_NAME := holmes
# 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
BASE_IMAGE_TAG := 7f6c3f231c0cffbf11e67f5a5e38366bef1c798f
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)