.PHONY: test build dev publish localecompile
LANGUAGES:=`find conjunto/locale/ -mindepth 1 -maxdepth 1 -type d -printf "--locale %f "`
PYTHON = uv python

all: init locale staticfiles
production: localecompile staticfiles

setup:
	uv sync

test:
	uv run pytest

coverage:
	coverage run -m pytest

#check:
#	ruff check .
#
docs-build:
	mkdocs build

docs-live:
	mkdocs serve

clean:
	rm -rf dist/* build/*

# The compiled catalogues are committed and shipped: Django reads .mo only.
localecompile:
	cd src/conjunto && uv run django-admin compilemessages

build: clean localecompile
	uv build

publish: build
	uv publish
