.PHONY: default install wheel test clean clean_test clean_wheel uninstall

default:
	echo "Please specify a build target"

install: wheel
	sudo python -m installer dist/*

wheel:
	python -m build --wheel --no-isolation

test:
	python run_tests.py

clean: clean_test clean_wheel

clean_wheel:
	rm -rf build
	rm -rf dist
	rm -rf epubsynth_internal.egg-info

clean_test:
	rm -f test/out/*

uninstall:
	yes | sudo pip uninstall epubsynth_internal --break-system-packages
