holmes/lib/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

17 lines
447 B
Makefile

REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
RELDIR := $(CURDIR)/scripts
.PHONY: all party_migration_script observer_cli
all: party_migration_script observer_cli
party_migration_script:
$(MAKE) -C $@
mkdir -p $(RELDIR)/hellgate
cp $@/_build/default/bin/migration $(RELDIR)/hellgate/party-migration
observer_cli:
cd $@ && $(REBAR) escriptize
mkdir -p $(RELDIR)
cp $@/_build/default/bin/observer_cli $(RELDIR)/observer-cli