25 lines
727 B
Makefile
25 lines
727 B
Makefile
BINARY_NAME=currency_convert_sheets
|
|
GOCMD=go
|
|
GOBUILD=$(GOCMD) build
|
|
GOCLEAN=$(GOCMD) clean
|
|
GOTEST=$(GOCMD) test ./...
|
|
|
|
all: build test run_generate_bkm_transformed_reports
|
|
production: run_process_forex_data run_extrapolate_forex-data run_process_bkm_history run_generate_bkm_transformed_reports
|
|
build:
|
|
$(GOBUILD) -o bin/$(BINARY_NAME)
|
|
|
|
test:
|
|
$(GOTEST)
|
|
|
|
run_process_forex_data:
|
|
bin/./$(BINARY_NAME) -i configs/configs_forex_extract.toml pro_forex_his
|
|
|
|
run_extrapolate_forex-data:
|
|
bin/./$(BINARY_NAME) extra-forex-data
|
|
|
|
run_process_bkm_history:
|
|
bin/./$(BINARY_NAME) -i configs/configs_bkm_extract.toml pro_bkm_his
|
|
|
|
run_generate_bkm_transformed_reports:
|
|
bin/./$(BINARY_NAME) -i configs/configs_bkm_transform.toml gen_trans
|