go:
	# /usr/local/cpython-3.6/bin/mypy --disallow-untyped-calls --ignore-missing-imports recent
	./this-pylint --to-pylint recent
	./recent --glob
	./recent --here
	find . -type f -print0 | ./recent --stdin
	! ./recent --here --stdin
	! ./recent
	./recent --help
	! ./recent --nonexistent
	# This sometimes comes up different because of files with the same timestamp, but not with these inputs
	find test-inputs -type f -print0 | ./recent --sort --stdin --count 5 > sort.output
	find test-inputs -type f -print0 | ./recent --heap --stdin --count 5 > heap.output
	diff sort.output heap.output
	(cd ~/src/home-svn && ~/src/home-svn/recent/trunk/recent --here --count 999999) || true
	./recent --here --ctime
	./recent --here --atime
	./recent --here --filenames-only
	@echo All tests passed.

install:
	./install-file --file recent --directory /usr/local/bin/.
	./install-file --file recents --directory /usr/local/bin/.
	./install-file --file readline0.py --directory /usr/local/lib/.
	./install-file --file python2x3.py --directory /usr/local/lib/.

clean:
	rm -rf __pycache__
	rm -f *.pyc
	rm -rf *.output