S3_BUCKET = s3://docs.makingwithcode.org/retro-gamer/
CF_DISTRIBUTION = EPA6NHZ2LEH1A

.PHONY: build deploy clean

build:
	uv run --group documentation $(MAKE) -C docs html

deploy: build
	aws s3 sync docs/_build/html $(S3_BUCKET)
	aws cloudfront create-invalidation --distribution-id $(CF_DISTRIBUTION) --paths "/retro-gamer/*"

clean:
	$(MAKE) -C docs clean
