pstds-proto/Makefile

43 lines
846 B
Makefile
Raw Normal View History

2020-08-21 14:28:02 +00:00
THRIFT = $(or $(shell which thrift), $(error "`thrift' executable missing"))
2020-09-04 10:41:39 +00:00
REBAR = $(shell which rebar3 2>/dev/null || which ./rebar3)
SUBMODULES = build_utils
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
2020-08-21 14:28:02 +00:00
UTILS_PATH := build_utils
TEMPLATES_PATH := .
# Name of the service
2020-09-04 10:41:39 +00:00
SERVICE_NAME := pstds_proto
2020-08-21 14:28:02 +00:00
2020-09-04 10:41:39 +00:00
# Build image tag to be used
BUILD_IMAGE_TAG := b04c5291d101132e53e578d96e1628d2e6dab0c0
CALL_ANYWHERE := \
all submodules compile clean distclean
2020-08-21 14:28:02 +00:00
2020-09-04 10:41:39 +00:00
CALL_W_CONTAINER := $(CALL_ANYWHERE)
2020-08-21 14:28:02 +00:00
all: compile
-include $(UTILS_PATH)/make_lib/utils_container.mk
2020-09-04 10:41:39 +00:00
.PHONY: $(CALL_W_CONTAINER)
2020-08-21 14:28:02 +00:00
2020-09-04 10:41:39 +00:00
# CALL_ANYWHERE
$(SUBTARGETS): %/.git: %
git submodule update --init $<
touch $@
2020-08-21 14:28:02 +00:00
2020-09-04 10:41:39 +00:00
submodules: $(SUBTARGETS)
2020-08-21 14:28:02 +00:00
2020-09-04 10:41:39 +00:00
compile:
$(REBAR) compile
2020-08-21 14:28:02 +00:00
2020-09-04 10:41:39 +00:00
clean:
$(REBAR) clean
2020-08-21 14:28:02 +00:00
2020-09-04 10:41:39 +00:00
distclean:
$(REBAR) clean -a
rm -rfv _build
2020-08-21 14:28:02 +00:00
include $(UTILS_PATH)/make_lib/java_proto.mk