test:
	/usr/local/cpython-3.7/bin/mypy --disallow-untyped-calls coordinate
	# /usr/local/cpython-3.6/bin/mypy --disallow-untyped-calls coordinate
	/usr/local/cpython-3.7/bin/mypy --disallow-untyped-calls --follow-imports skip coord-xargs-like
	# Python 3.5 doesn't like our type annotations.
	# ./tests /usr/local/cpython-3.5/bin/python3
	./tests python3.6
	./tests python3.7
	@echo All tests passed.

.PHONY: bigger-test
bigger-test:
	./bigger-test

install:
	./install-file --file coordinate --directory /usr/local/bin/.
	./install-file --file coord-xargs-like --directory /usr/local/bin/.
	# We used to need this, but no longer.
	./remove-file --file /usr/local/bin/coord-to-files
	./install-file --file readline0.py --directory /usr/local/lib/.
	./install-file --file bashquote.py --directory /usr/local/lib/.

clean:
	rm -rf .mypy_cache autom4te.cache __pycache__
	rm -f *.pyc remove-me
	rm -rf output-lines