2020-04-15 04:56:00 +03:00
|
|
|
PWD := $(shell pwd)
|
|
|
|
PARENT_DIR := $(shell dirname $(PWD))
|
|
|
|
VERSION ?= $(shell ../get-version.sh)
|
|
|
|
BUILD_DIR ?= /build
|
|
|
|
BUILD_OUTPUT ?= $(BUILD_DIR)/_cli_migrations_output
|
2020-04-30 08:22:11 +03:00
|
|
|
SERVER_BUILD_OUTPUT := $(BUILD_DIR)/_server_output
|
2021-03-02 10:25:32 +03:00
|
|
|
SHELL := /bin/bash
|
|
|
|
.SHELLFLAGS := -ce
|
2020-04-30 08:22:11 +03:00
|
|
|
|
2020-04-15 04:56:00 +03:00
|
|
|
.PHONY: build-cli-migrations-v2
|
|
|
|
.ONESHELL:
|
|
|
|
build-cli-migrations-v2:
|
|
|
|
cd v2
|
2021-03-04 15:44:08 +03:00
|
|
|
./build.sh $(SERVER_BUILD_OUTPUT) $(BUILD_OUTPUT)
|
2020-04-15 04:56:00 +03:00
|
|
|
|
|
|
|
.PHONY: test-cli-migrations-v2
|
|
|
|
.ONESHELL:
|
|
|
|
test-cli-migrations-v2:
|
|
|
|
cd v2/test
|
|
|
|
./test.sh
|
|
|
|
|
|
|
|
.PHONY: all
|
2021-03-04 15:44:08 +03:00
|
|
|
all: build-cli-migrations-v2 test-cli-migrations-v2
|