
run:
	python3 b8.py

lint:
	flake8

ve:
	virtualenv -p python3 --system-site-packages ve
	./ve/bin/pip install -I flit
	./ve/bin/flit install


clean:
	rm -rf build dist b8.egg-info ve __pycache__ b8/__pycache__

copytoml:
	cp tools/pyproject.toml .
	git add pyproject.toml

uncopytoml:
	git rm pyproject.toml

sdist:
	flit build

upload:
	flit publish

release: clean copytoml upload uncopytoml clean
	make clean
	echo done

wwwreadme:
	tail -n+4 tools/www/src/index.md > README.md

wwwclean:
	rm -rf tools/www/public

wwwbuild:
	eleventy --config tools/www/eleventyconfig.js

wwwdeploy: wwwbuild
	cd tools/www && firebase deploy
