holmes/Makefile
Andrew Mayorov 71cba594e3
Add observer-cli to the toolset (#41)
* Bump submodule versions
* Refactor build stage a bit
* Add observer-cli to the mix
* Separate build artifacts from repo scripts
* Bump to rbkmoney/image-build@9d4d703
2018-12-18 17:58:07 +03:00

35 lines
877 B
Makefile

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 := 9d4d70317dd08abd400798932a231798ee254a87
# Build image tag to be used
BUILD_IMAGE_TAG := 9d4d70317dd08abd400798932a231798ee254a87
CALL_ANYWHERE := all submodules lib
# 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_container.mk
-include $(UTILS_PATH)/make_lib/utils_image.mk
submodules:
@if git submodule status | egrep -q '^[-]|^[+]'; then git submodule update --init; fi
lib:
$(MAKE) -C lib