.PHONY: help
help:
	@echo "Make command reference"
	@echo "  make init ........ (initialize for development)"
	@echo "  make clean ....... (clean up build artifacts)"
	@echo "  make update-deps . (update dependencies and pre-commit hooks)"

.PHONY: init
init:
	rm -rf .tox
	uv pip install --upgrade pre-commit tox tox-uv scriv
	uv pip install -e ".[technote,guide]" --group dev
	pre-commit install

.PHONY: clean
clean:
	rm -rf .tox
	rm -rf docs/_build
	rm -rf docs/dev/api/contents/*.rst
	make -C demo/rst-technote clean

.PHONY: update-deps
update-deps:
	uv pip install --upgrade pre-commit
	pre-commit autoupdate
