export UV_ENV_FILE=../../.env

help:
	echo "Available targets:"
	echo "  inference - Run inference for the model version specified in MODEL_VERSION"
	echo "  publish   - Publish the inference results to Snowflake for the model version specified in MODEL_VERSION"
	echo "  clean     - Clean up intermediate resources (temporary tables, files) for the model version specified in MODEL_VERSION"
	echo "  monitor   - Run monitors for data freshness and availability"
	echo "Usage: make <target>"
	exit 1

inference:
	echo Running inference
	uv run python -m tadas.cli.model inference --report=countries
	uv run python -m tadas.cli.model inference --report=global

publish:
	echo Publishing results to Snowflake
	uv run python -m tadas.cli.model sync-to-snowflake --report=countries
	uv run python -m tadas.cli.model sync-to-snowflake --report=global

clean:
	echo Delete intermediate resources: temporary tables, files
	uv run python -m tadas.cli.model delete-tables --report=countries
	uv run python -m tadas.cli.model delete-tables --report=global

monitor:
	-uv run python -m tadas.cli.monitor_freshness
	-uv run python -m tadas.cli.monitor_availability
