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

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

static_install_path = $(st_algorithm_dir)/static_data

STATIC_DATA_FILES = \
    aster_ged_tile_list.txt           \
    merra2_coordinates.txt            \
    modtran_head.txt                  \
    modtran_tail.txt                  \
    std_mid_lat_summer_atmos.txt      \
    L4_Rad_Conversion_LUT.txt         \
    L4_Spectral_Response.txt          \
    L5_Rad_Conversion_LUT.txt         \
    L5_Spectral_Response.txt          \
    L7_Rad_Conversion_LUT.txt         \
    L7_Spectral_Response.txt          \
    L8_Rad_Conversion_LUT.txt         \
    L8_Spectral_Response.txt          \
    L9_Rad_Conversion_LUT.txt         \
    L9_Spectral_Response.txt          \
    coefficients.json


all:
	echo "make all in xgboost..."; \
	(cd xgboost; $(MAKE))


install:
	install -d $(static_install_path)
	@for file in $(STATIC_DATA_FILES); do \
            echo "  installing $$file"; \
            install -m 644 $$file $(static_install_path) || exit 1; \
        done;
	echo "make install in xgboost..."; \
	(cd xgboost; $(MAKE) install)


clean:

         
