#-----------------------------------------------------------------------------
# Makefile
#
# Simple makefile for installing the xgboost data.
#-----------------------------------------------------------------------------
.PHONY: all install clean

# Inherit from upper-level make.config
TOP = ../../..
include $(TOP)/make.config

xgboost_install_path = $(st_algorithm_dir)/static_data/xgboost


XGBOOST_DATA_FILES =      \
    hyperparams.txt       \
    scaler.pkl            \
    settings.txt          \
    model.json            \
    xgb_test_metrics.csv  \
    xgb_train_metrics.csv


all:

install:
	install -d $(xgboost_install_path)
	@for file in $(XGBOOST_DATA_FILES); do \
            echo "  installing $$file"; \
            install -m 644 $$file $(xgboost_install_path) || exit 1; \
        done;

# Cleanup old model and metrics files on the destination system
	$(RM) -f $(xgboost_install_path)/XGBRegressor_*

clean:

