<NME> Makefile
<BEF> source := ${wildcard ./arxiv/*.py}
tests := ${wildcard tests/*.py}

.PHONY: all lint test audit docs clean

all: lint test docs

lint: $(source) $(tests)
	flake8 . --count --max-complexity=10 --statistics

test: $(source) $(tests)
	pytest

docs: docs/index.html
docs/index.html: $(source)
	pdoc arxiv -o docs
	mv docs/arxiv/arxiv.html docs/index.html
	rm docs/arxiv.html
	rmdir docs/arxiv
	mv docs/arxiv/arxiv.html docs/index.html
	rmdir docs/arxiv
	rm -rf build dist
	rm -rf __pycache__ **/__pycache__
	rm -rf *.pyc **/*.pyc
	rm -rf arxiv.egg-info
	rm -rf __pycache__ **/__pycache__
	rm -rf *.pyc **/*.pyc
	rm -rf arxiv.egg-info

<MSG> Specify local arxiv package in docs target

Otherwise pdoc defaults to the version of arxiv installed in the current
env.

<DFF> @@ -13,7 +13,7 @@ test: $(source) $(tests)
 
 docs: docs/index.html
 docs/index.html: $(source)
-	pdoc arxiv -o docs
+	pdoc ./arxiv -o docs
 	mv docs/arxiv/arxiv.html docs/index.html
 	rm docs/arxiv.html
 	rmdir docs/arxiv
@@ -22,4 +22,4 @@ clean:
 	rm -rf build dist
 	rm -rf __pycache__ **/__pycache__
 	rm -rf *.pyc **/*.pyc
-	rm -rf arxiv.egg-info
\ No newline at end of file
+	rm -rf arxiv.egg-info

Specify local arxiv package in docs target